Welcome to the repository for the get-lyrics project. This tool automates tagging your MP3s with lyrics. It's written in Go and uses the Genius API and a Levenshtein distance algorithm to find the best match for the given artist/track, download the lyrics, and embed them as an ID3v2 tag in the file.
- A git client to clone the repository.
- The Go toolchain installed to run the program.
- A Genius API Access Token
- Some MP3 files you want to tag.
- Clone the repository using git.
git clone https://github.com/SamW94/get-lyrics.git
- Create a
.envfile in the root of the repository with your genius client access token.
cd get-lyrics
echo "GENIUS_CLIENT_ACCESS_TOKEN=<your-client-access-token> >> .env
- Switch into the
srcdirectory and run the program. The argument provided to the program should be the directory containing the MP3 files (or subdirectories containing MP3 files) you want to tag.
cd src
go run . ~/Music/Converge
- Wait for the program to complete. Check your MP3 to see embedded lyrics!