metalx1000

Deepspeech Linux install and example usage voice to text

Aug 14th, 2019 (edited)
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. #deepspeech
  2. sudo apt install python3-pip sox
  3. python3.9 -m pip install --upgrade pip
  4. python3.9 -m pip install deepspeech
  5.  
  6. #Getting the pre-trained model
  7. mkdir deep
  8. cd deep
  9. curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.pbmm
  10. curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.scorer
  11.  
  12. #record some audio
  13. sox -r 96k -c 1 -d myfile.wav
  14.  
  15. #if you are using pulseaudio
  16. padsp sox -r 96k -c 1 -d myfile.wav
  17.  
  18. #run deepspeech
  19. $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