Knowledge for the World

How to install PocketSphinx on a Raspberry Pi

1

You can find the downloads here: http://cmusphinx.sourceforge.net/wiki/download.

wget https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/sphinxbase-5prealpha.tar.gz/download -O sphinxbase.tar.gz

wget https://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz/download -O pocketsphinx.tar.gz

2

tar -xzvf sphinxbase.tar.gz
tar -xzvf pocketsphinx.tar.gz

3

sudo apt-get install bison libasound2-dev swig

4

cd sphinxbase-5prealpha
./configure --enable-fixed
make
sudo make install

5

cd ../pocketsphinx-5prealpha
./configure
make
sudo make install

6

src/programs/pocketsphinx_continuous -samprate 48000