How To Install Pocketsphinx On A Raspberry Pi
1
Download the latest version of sphinxbase and pocketsphinx
You can find the downloads on GitHub
wget https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/sphinxbase-5prealpha.tar.gz/download -O sphinxbase.tar.gzwget https://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz/download -O pocketsphinx.tar.gz2
Extract the files into separate directories
tar -xzvf sphinxbase.tar.gz tar -xzvf pocketsphinx.tar.gz3
Install bison, ALSA, and swig
sudo apt-get install bison libasound2-dev swig4
Compile sphinxbase
cd sphinxbase-5prealpha ./configure --enable-fixed make sudo make install5
Compile pocketsphinx
cd ../pocketsphinx-5prealpha ./configure make sudo make install6
Test out the installation
src/programs/pocketsphinx_continuous -samprate 48000