Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #deepspeech
- sudo apt install python3-pip sox
- python3.9 -m pip install --upgrade pip
- python3.9 -m pip install deepspeech
- #Getting the pre-trained model
- mkdir deep
- cd deep
- curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.pbmm
- curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.scorer
- #record some audio
- sox -r 96k -c 1 -d myfile.wav
- #if you are using pulseaudio
- padsp sox -r 96k -c 1 -d myfile.wav
- #run deepspeech
- $HOME/.local/bin/deepspeech --model deepspeech-0.9.3-models.pbmm --scorer deepspeech-0.9.3-models.scorer --audio myfile.wav 2>/dev/null
Add Comment
Please, Sign In to add comment