How to install PocketSphinx on a Raspberry Pi

  • by Tyler (237)
  • Time to complete: 5 minutes

This guide will show you how to install PocketSphinx on your Raspberry Pi. PocketSphinx is a super lightweight speech and voice recognition engine.

1

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

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