0
votes

When i run the program it tells me that ensure pocketsphinx is installed correctly but when I pip install pocketsphinx it says; error:command 'swig.exe' failed: no such file or directory . Please help!..Am using windows 8.1 with Python 2.7.11

1
Well, what steps did you take to ensure pocketsphinx is installed? - OneCricketeer
i installed speech_recognition from python PyPI but sphinxs does not work so i tried pip install pocketsphinx but still no luck - Sloppy
Pip and pypi are the same thing, as far as I know - OneCricketeer

1 Answers

1
votes

Swig is one of the dependencies you need to install first to be able to compile pocketsphinx, as pocketsphinx doesn't provide any precompiled versions.

If you don't want to compile it yourself, you can try a unofficial pre-built version from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pocketsphinx