Stream music lyrics api from Netease Music with translation support.
- lrc.py returns at most 9 lyrics when searching online, sorted by similarity of title, album name, artist name, in json format.
- lrc_single.py returns the highest similarity one in plain text, without translation.
- change lrc path in lrc.py to your .lrc file path
- run the python script
- set lyrics api in Stream music
http://localhost:51232/lyrics
- set lyrics confirm api
http://localhost:51232/lyrics/confirm
-
Build the Docker image:
docker build . -t stream_music_lyrics_api
-
Deploy the container:
docker run -d \
--name stream_music_lyrics_api \
-v /path/to/your/lyrics/folder:/lyrics \
-p 51232:51232 \
stream_music_lyrics_api:latest
Make sure to replace /path/to/your/lyrics/folder
with the actual path to your lyrics folder.