How To Install Pocketsphinx On A Raspberry Pi

By admin ·
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.gz
wget https://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz/download -O pocketsphinx.tar.gz
2

Extract the files into separate directories

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

Install bison, ALSA, and swig

sudo apt-get install bison libasound2-dev swig
4

Compile sphinxbase

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

Compile pocketsphinx

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

Test out the installation

src/programs/pocketsphinx_continuous -samprate 48000