LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-18-2010, 03:39 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Bash : input an mp3, and output the lyrics as text?


I am looking for a prgramme that output the lyrics when I give it an mp3...

Code:
fetchlyrics mymp3.mp3
based on its data inside of mp3
 
Old 12-18-2010, 08:15 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
good luck with that !
 
Old 12-18-2010, 08:40 AM   #3
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Linux.com How to script songs lyrics retrieval
 
Old 12-18-2010, 09:00 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
eyeD3 file.mp3
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:

Last edited by colucix; 12-18-2010 at 09:23 AM.
 
1 members found this post helpful.
Old 12-18-2010, 11:59 AM   #5
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
This is something new to me. Does it explain the ~12MB size? I have the same song with under 1.5MB.
 
Old 12-18-2010, 12:28 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by SilverBack View Post
This is something new to me. Does it explain the ~12MB size? I have the same song with under 1.5MB.
Actually I think it depends on the high audio bitrate: 320 kbps.
 
1 members found this post helpful.
Old 12-18-2010, 12:52 PM   #7
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Does this mean that 'mostly' all mp3s have text in them?
 
Old 12-18-2010, 12:56 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
No, very few will.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: Passing Output to another programs Input? zachet Programming 6 11-19-2009 10:12 AM
Pass output of one command as input to another on bash linuxlover.chaitanya Linux - Newbie 3 01-08-2009 01:46 AM
parse input text file and generate output TsanChung Programming 5 07-27-2008 10:23 PM
bash input/output redirect problem greno Programming 2 12-31-2006 03:23 PM
Text input in bash? pk21 Programming 12 06-05-2003 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration