Whisper.cpp Speech-to-Text engine combined with Silero Voice Activity Detector. This improves transcription speed and quality, and can avoid hallucination of the model.
Run whisper_vad.py directly for transcribing any video/audio files into SRT subtitles, or import it as a library.
- ffmpeg (command)
- openblas (system library)
- cffi
- torch
- scipy
- zhconv: Chinese postprocess
pip install -r requirements.txtmake
git submodule update --init --recursivecd whisper.cpp- Compile whisper.cpp to match your device
cmake -B build(add any build options)cmake --build build --config Release -j8
pip install -r requirements.txtmake
python3 whisper_vad.py --help to see usage.