Created
February 1, 2020 22:32
-
-
Save lexoyo/aab484c77a78e1aba8f969aa2c340157 to your computer and use it in GitHub Desktop.
setting up mozilla's deepspeech and listen to mic on fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected]: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