Install Anaconda3 and open the Anaconda Prompt.
- Move to your Projects directory. (You can switch drive letters by just entering e.g.
F:and hitting enter for the drive letter F.) - Create an environment:
conda create --name lyrics python=3.10.12 - Activate the environment:
conda activate lyrics - Install
whisperandspleeter:pip install spleeter openai-whisper - Download ffmpeg and put the ffmpeg.exe into your project directory within Anaconda (Seems like having it in PATH doesn't work on windows...)
Now you're good to go, just execute it from within Anaconda Prompt. Every time you close the Anaconda Prompt you should repeat step 1 and 3 before executing the script.
Pysync can be used using the command line. Setup the environment using conda and make sure that whisper and spleeter are installed. Then you can use this via the command line, providing an mp3 of the song and text file with lyrics you want to sync. The program will produce a .lrc file with timestamps which can be used by various lyric display programs.
python pysync [-h] [--output_file OUTPUT_FILE] music lyrics