How can I access lyric tag of an mp3 using python modules? Assume mp3 already has lyrics tag filled with track's lyric.
Asked
Active
Viewed 521 times
0
-
All that has been posted is a program description. However, we need you to ask a question according to the [ask] page. We can't be sure what you want from us. Please [edit] your post to include a valid question that we can answer. Reminder: make sure you know what is on-topic here by visiting the [help/on-topic]; asking us to write the program for you, suggestions, and external links are off-topic. – Patrick Artner Jul 05 '20 at 13:17
-
Does this answer your question? [Retrieve lyrics from an mp3 file in Python using eyeD3](https://stackoverflow.com/questions/16182094/retrieve-lyrics-from-an-mp3-file-in-python-using-eyed3) – metatoaster Jul 05 '20 at 13:17
-
@PatrickArtner tag.lyrics[0] returns an eyed3 object not a usable string, but using tag.lyrics[0].text solved my problem. – Arian Shariat Jul 05 '20 at 13:21
1 Answers
1
theres a module called eyeD3
import eyeD3
tag = eyeD3.Tag()
tag.link("/some/file.mp3")
print tag.getArtist()
...

Sven
- 1,014
- 1
- 11
- 27