Just use pip install -r requirements.txt then run with python mp3_to_sbv.py audio.mp3, replacing audio.mp3 by the path to an mp3 file and it will generate an audio.sbv next to the input file.
Why mp3 to sbv? Because that's what youtube.com exports when you download subtitles.
What transcriber is used? Google Speech Recognition, learn more here.
Thanks for the tips, freecodecamp.
Modified to allow a multitude of files as input (it uses PyDub)
- .mp3
- .wav
- .ogg
- .flac
- .aac
- .m4a
- .wma
- .aiff
- .au
- .raw
- .3gp
- .webm