Skip to content

bossjones/pocketsphinx-python

 
 

Repository files navigation

pocketsphinx-python

Python interface to CMU SphinxBase and PocketSphinx libraries

Supported Platforms

  • Windows 7
  • Windows 8
  • Ubuntu 14.10

Install on Windows

Dependencies

Install

pip install pocketsphinx

or

git clone --recursive https://github.com/bambocher/pocketsphinx-python
cd pocketsphinx-python
python setup.py install

Install on Ubuntu

Dependencies

  • python
  • python-dev
  • python-pip
  • build-essential
  • swig
  • git

Install

sudo apt-get install -y python python-dev python-pip build-essential swig git
sudo pip install pocketsphinx

or

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 install

Import

try:
    # 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

About

Python module installed with setup.py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 46.7%
  • C 43.0%
  • Shell 10.3%