Skip to content

Instantly share code, notes, and snippets.

@lexoyo
Created February 1, 2020 22:32
Show Gist options
  • Save lexoyo/aab484c77a78e1aba8f969aa2c340157 to your computer and use it in GitHub Desktop.
Save lexoyo/aab484c77a78e1aba8f969aa2c340157 to your computer and use it in GitHub Desktop.
setting up mozilla's deepspeech and listen to mic on fedora
sudo dnf install python3-pyaudio portaudio-devel
# Download pre-trained English model and extract
curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.6.1/deepspeech-0.6.1-models.tar.gz
tar xvf deepspeech-0.6.1-models.tar.gz
# Download example audio files
curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.6.1/audio-0.6.1.tar.gz
tar xvf audio-0.6.1.tar.gz
# install deepspeech and samples
python -m venv python-venv
source python-venv/bin/activate
pip install deepspeech
git clone git@github.com:mozilla/DeepSpeech-examples.git
cd DeepSpeech-examples/mic_vad_streaming
pip install -r requirements.txt
cd ../..
# start listening mic
python DeepSpeech-examples/mic_vad_streaming/mic_vad_streaming.py --model deepspeech-0.6.1-models/output_graph.pbmm --lm deepspeech-0.6.1-models/lm.binary --trie deepspeech-0.6.1-models/trie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment