User Tools

Site Tools


Install is simple, you need to setup and properly configure alsa, then you can just build and run pocketsphinx

sudo apt-get update
sudo apt-get upgrade
cat /proc/asound/cards

check your microphone is visible or not and if on which usb extension

   sudo nano /etc/modprobe.d/alsa-base.conf

Now change this

   # Keep snd-usb-audio from being loaded as first soundcard 
   options snd-usb-audio index=-2


   options snd-usb-audio index=0

if there is some other options snd-usb-audio index=1, comment it out

   sudo reboot 
   cat /proc/asound/cards 
   check your device is at 0
   sudo apt-get install bison
   sudo apt-get install libasound2-dev

download sphinxbase latest , extract

   ./configure --enable-fixed
   sudo make install

download pocketsphinx, extract

   sudo make install
   export LD_LIBRARY_PATH=/usr/local/lib 
   export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Run it, should work

   pocketsphinx_continuous -inmic yes
raspberrypi.txt · Last modified: 2016/04/27 15:24 by admin