Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing PocketSphinx on a MAC OS X

I'm trying to learn pocketsphinx using python, and therefore wanted to install the same on my Mac OSX Lion. However, I'm really not experienced with installing packages and modules in Python, and the documentation on this one is slightly confusing for me. Here's what I've done till now. I downloaded the pocketsphinx 0.8 version from the following website: http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/0.8/

I tried to search for the same using macports, so I could install it using macports, but the search command could not find pocketsphinx. I'm aware that my question may be terribly amateur and I apologize in advance for the same.

I looked for the answer here and the closest question was this one: Setting Up PocketSphinx in Mac OS X But the question seems unanswered. Therefore, could someone help me install this package on my system?

like image 249
yashc Avatar asked Feb 15 '13 08:02

yashc


Video Answer


2 Answers

There is a homebrew formula for pocketsphinx, which (just) installed fine on my system (Mountain Lion). Maybe try that? brew install cmu-pocketsphinx worked for me...

like image 116
hd1 Avatar answered Oct 12 '22 22:10

hd1


I set up pocketsphinx successfully for python by:

brew install cmu-pocketsphinx
brew install swig
pip3 install --upgrade pip setuptools wheel
brew install openal-soft
cd /usr/local/include
ln -s /usr/local/Cellar/openal-soft/1.20.1/include/AL/* .    
pip3 install pocketsphinx

The last 4 commands come from this answer.

MacOS 10.14, Python 3.7.

like image 31
derek.z Avatar answered Oct 12 '22 22:10

derek.z