Skip to content

Instantly share code, notes, and snippets.

@adrianoxavier
Created April 16, 2015 16:39
Show Gist options
  • Save adrianoxavier/5d7ae78d4e07fde43563 to your computer and use it in GitHub Desktop.
Save adrianoxavier/5d7ae78d4e07fde43563 to your computer and use it in GitHub Desktop.
sudo apt-get update -y
sudo apt-get install -y python-pocketsphinx pocketsphinx-hmm-wsj1 pocketsphinx-lm-wsj swig python-dev
mkdir voice_recognition; cd voice_recognition
git clone git://github.com/cmusphinx/sphinxbase.git
git clone git://github.com/cmusphinx/pocketsphinx.git
cd sphinxbase
./autogen.sh ; make
sudo make install
cd ..
cd pocketsphinx
./autogen.sh ; make
sudo make install
sox file.wav -r 16000 file-16000.wav
voxforge-es-0.1.1\etc
#!/bin/bash
pocketsphinx_continuous \
-hmm voxforge-es-0.1.1/model_parameters/voxforge_es_sphinx.cd_cont_1500 \
-lw 10 -feat 1s_c_d_dd -beam 1e-80 -wbeam 1e-40 \
-dict voxforge-es-0.1.1/etc/voxforge_es_sphinx.dic \
-wip 0.2 \
-agc none -varnorm no -cmn current -inmic yes \
-lm voxforge-es-0.1.1/etc/voxforge_es_sphinx.transcription.test.lm \
-infile fil
pocketsphinx_continuous \
-hmm pt-br/hmm \
-lw 10 -feat 1s_c_d_dd -beam 1e-80 -wbeam 1e-40 \
-dict pt-br/lm/constituicao.dic \
-wip 0.2 \
-agc none -varnorm no -cmn current -inmic yes \
-lm pt-br/grammar/digits.gram \
-infile fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment