Python interface to CMU SphinxBase and PocketSphinx libraries
- Windows 7
- Windows 8
- Ubuntu 14.10
pip install pocketsphinxor
git clone --recursive https://github.com/bambocher/pocketsphinx-python
cd pocketsphinx-python
python setup.py install- python
- python-dev
- python-pip
- build-essential
- swig
- git
sudo apt-get install -y python python-dev python-pip build-essential swig git
sudo pip install pocketsphinxor
sudo apt-get install -y python python-dev python-pip build-essential swig git
git clone --recursive https://github.com/bambocher/pocketsphinx-python
cd pocketsphinx-python
sudo python setup.py installtry:
# Python 2.x
from sphinxbase import Config
from pocketsphinx import Decoder
except ImportError:
# Python 3.x
from sphinxbase.sphinxbase import Config
from pocketsphinx.pocketsphinx import Decoder