Skip to content

Installation and Usage

Ziping Liu edited this page Jul 18, 2018 · 15 revisions
  1. Build Sphinxbase and Pocketsphinx. Follow their readme's. Run the following to set paths.

     export LD_LIBRARY_PATH=/usr/local/lib
     export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    
  2. Install pulseaudio. Install pavucontrol. Install alsa-oss. Install libsound2-dev. Install alsa-lib.

  3. Place 99-gpio.rules into /etc/udev/rules.d/ directory.

  4. Run sudo udevadm control --reload-rules

  5. In the spicerack directory, run make

  6. Run sudo alsactl init

  7. Run chmod 777 spicerack

  8. Run ./spicerack -inmic yes

  9. For keyword spotting, run ./spicerack -inmic yes -hmm pocketsphinx/model/en-us/en-us -dict assets/7701.dic -kws assets/spicecommands.txt -kws_threshold 0.01 -kws_plp 1e-1

Clone this wiki locally