- Set up necessary dependencies first.
sudo apt-get install -qq python python-dev python-pip build-essential swig libpulse-dev
- Set up wheel and upgrade/install
pocketsphinx
using the following commands.
python -m pip install --upgrade pip setuptools wheel
and
pip install --upgrade pocketsphinx
.
- Install pocketspinx in the conda environment, by using
conda install -c jiayi_anaconda pocketsphinx
- Clone the repository and change
lm
anddic
path in filespeech_recognition_working.py
corresponding to the models7723.lm.bin
and7723.dic
. - Run
speech_recognition_working.py
file using commandpython speech_recognition_working.py
. - Speak and enjoy!