Skip to content

Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.

License

Notifications You must be signed in to change notification settings

spyer/lyrics2mp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lyrics2mp3

Parse lyrics and add them into mp3 and m4a files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.

What script does:

  1. Scans directory recursively, or each file in playlist, for music files.
  2. Reads artist and title from music tag.
  3. Searches lyrics for each song on genius.com, azlyrics.com, lyricsgenius.com, songlyrics.com
  4. Inserts lyrics into music file if found (unless simulating).

Installation:

git clone https://github.com/spyer/lyrics2mp3.git
pip3 install -r requirements.txt

If you have trouble installing, please check if taglib library is installed (may have to compile).

Usage:

Required arguments:
  one of:
    --dir DIR               Directory to search for music files
    --m3u PATH              Playlist to search for music files

Optional arguments:
  --genius_token TOKEN      API token for genius.com music database. Without this token Genius will not be used. Sign up for token at https://genius.com/api-clients
  --write_on_not_found      Write '...' on files with no lyrics found
  --overwrite               Overwrite existing lyrics
  --ignore_artist           Ignore files' artists, look at song name only 
  --simulate, -s            Simulate retrieval but change no files
  --verbose, -v             Level of debug info to display
  --help                    Show all arguments

About

Parse lyrics and add them into mp3 files (via id tags). Lyrics can then be viewed on iPhone, iTunes and other players.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages