Bash : input an mp3, and output the lyrics as text?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Simple and effective. eyeD3 is a python script. On my OpenSuSE box it is provided by the python-eyeD3 package. If the lyrics are not displayed, they are not present in the id3v2 tag. Here is an example output:
Code:
$ eyeD3 "Queen - Bohemian Rhapsody.mp3"
Queen - Bohemian Rhapsody.mp3 [ 13.73 MB ]
-------------------------------------------------------------------------------
Time: 05:58 MPEG1, Layer III [ 320 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
ID3 v2.3:
title: Bohemian Rhapsody artist: Queen
album: The Best of Rock year: None
track: 5 genre: Rock (id 17)
Comment: [Description: ID3v1 Comment] [Lang: eng]
Lyrics: [Description: ] [Lang: XXX]
Is this the real life?
Is this just fantasy?
Caught in a landslide,
No escape from reality.
Open your eyes, Look up to the skies and see,
I'm just a poor boy, I need no sympathy,
Because I'm easy come, easy go, Little high, little low,
Any way the wind blows doesn't really matter to me, to me.
Mama just killed a man,
Put a gun against his head, pulled my trigger, now he's dead.
Mama, life had just begun,
But now I've gone and thrown it all away.
Mama, ooh, Didn't mean to make you cry,
If I'm not back again this time tomorrow,
Carry on, carry on as if nothing really matters.
Too late, my time has come,
Sends shivers down my spine, body's aching all the time.
Goodbye, ev'rybody, I've got to go,
Gotta leave you all behind and face the truth.
Mama, ooh, I don't want to die,
I sometimes wish I'd never been born at all.
I see a little silhouetto of a man,
Scaramouche, Scaramouche, will you do the Fandango.
Thunderbolt and lightning, very, very fright'ning me.
(Galileo.) Galileo. (Galileo.) Galileo, Galileo figaro
Magnifico. I'm just a poor boy nobody loves me.
He's just a poor boy from a poor family,
Spare him his life from this monstrosity.
Easy come, easy go, will you let me go.
Bismillah! No, we will not let you go.
(Let him go!) Bismillah! We will not let you go.
(Let him go!) Bismillah! We will not let you go.
(Let me go.) Will not let you go.
(Let me go.) Will not let you go. (Let me go.) Ah.
No, no, no, no, no, no, no.
(Oh mama mia, mama mia.) Mama mia, let me go.
Beelzebub has a devil put aside for me, for me, for me.
So you think you can stop me and spit in my eye.
So you think you can love me and leave me to die.
Oh, baby, can't do this to me, baby,
Just gotta get out, just gotta get right outta here.
Nothing really matters,
Anyone can see,
Nothing really matters,
Nothing really matters to me.
Any way the wind blows.
FRONT_COVER Image: [Size: 43770 bytes] [Type: image/jpeg]
Description:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.