- 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
pocketsphinxusing 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
lmanddicpath in filespeech_recognition_working.pycorresponding to the models7723.lm.binand7723.dic. - Run
speech_recognition_working.pyfile using commandpython speech_recognition_working.py. - Speak and enjoy!