Fetch and embed lyrics into mp3 via command line

0

I'm looking for a CLI way to fetch the lyrics of a song from the Internet and embed them as an ID3v2 tag into a music file (“Artist - Title.mp3”). There are half a dozen tools for doing this on Linux but how about Windows?

Clacers

Posted 2018-06-05T09:36:11.247

Reputation: 253

Bash now runs on Windows. Would Linux tools work under that? – TRiG – 2018-06-05T09:47:07.850

Answers

1

Some free packages I know of :

  • MP3tag
    The standard field for lyrics is UNSYNCEDLYRICS. Please note, that you have to prefix a language identifier in front of the lyrics, or "xxx" if you want the lyrics to show in any language. Also you have to add two "bars": xxx||My lyrics.

  • EasyTAG
    Said to have command-line support, but you would have to download it and see, as the online documentation is too brief.

  • eyeD3
    This is a Python tool, for users of Python. An example script can be found here.
    It also has a command-line support, where the syntax for the parameter is --add-lyrics=LYRICS_FILE[:DESCRIPTION[:LANG]]. But to include the file's contents would need under Linux (I admit to not knowing the Windows syntax):

    eyeD3 --lyrics=eng:these_lyrics:"$(cat lyrics_file.txt)" some_file.mp3
    

harrymc

Posted 2018-06-05T09:36:11.247

Reputation: 306 093

Thanks, eyeD3 has more than sufficient CLI support! But what about the other half of my question: How to fetch the lyrics from LyricWiki for example? – Clacers – 2018-06-05T13:28:52.657

A google search for "eyeD3 LyricWiki" found this example among 3,340 other results.

– harrymc – 2018-06-05T17:44:49.637