21 lines
399 B
Bash
21 lines
399 B
Bash
# ffmpeg -i file.mp3 -ar 16000 -ac 1 file.wav
|
|
|
|
pip3 install vosk
|
|
|
|
|
|
git clone http://github.com/alphacep/vosk-api
|
|
|
|
cd vosk-api/python/example
|
|
|
|
wget https://alphacephei.com/kaldi/models/vosk-model-small-en-us-0.3.zip
|
|
|
|
unzip vosk-model-small-en-us-0.3.zip
|
|
|
|
mv vosk-model-small-en-us-0.3 model
|
|
|
|
# python3 ./test_simple.py test.wav > result.json
|
|
|
|
# or
|
|
# pip3 install srt
|
|
# python3 ./test_srt.py test.wav
|