Embed Lrics (LRC format) from spotify
- It is very hard to get lyrics from spotify in this program due to spotify's highly complexed authentication process
- For more datails, read this discussion
- From these reasons, I deleted the function to get lyrics.
- In the future, I want to try scraping using Selemium...
wget https://github.com/miyake13000/spotics/releases/latest/download/spotics
chmod +x spotics-
Download Spotify Lyric JSON
- Access Spotify
- Open developer tool with F12 and click "Network" tab
- Enter "color" to "Filter" input area
- Search and open the music you want to embed the lyric
- After the lyric appeared, click and open JSON response in "network" tab
- Download or copy that JSON.
- The JSON is like:
{"lyrics":{"syncType":"LINE_SYNCED","lines":[{"startTimeMs":"18404","words":"blahblahblah","syllables":[],"endTimeMs":"0","transliteratedWords":""},... -
Embed Lyric to mp3 file
# Read Spotify Lyric JSON from file
spotics -f spotify_lyric.json your_music.mp3
# Or, from STDIN (This is usefull to paste from clipboard)
cat spotidy_lyric.json | spotics -i your_music.mp3- mp3 file must have id3 v2.x tag
$ spotics -f spotiy_lyric.json your_music.mp3
[00:00.500] Once upon a time, there was you
...
? Write above lyrics to specified file? (y/n) › y
$ id3v2 --list your_music.mp3
USLT (Unsynchronized lyric/text transcription): (Episode X)[jpn]: [00:00.500] Once upon a time, there was you
...
- Read
--helpto known other option