Skip to content

Installation and Usage

Ziping Liu edited this page Jul 27, 2018 · 15 revisions

Installation Instructions

  1. Install the following dependencies

     sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils
     sudo apt-get install libasound2
     sudo apt-get install pulseaudio
     sudo apt-get install libpulse-dev
     sudo apt-get install osspd
    

2a. Build Sphinxbase and Pocketsphinx. cd into the sphinxbase directory, run ./autogen.sh, then run ./configure, then run make, finally run sudo make install. Do the same in the pocketsphinx directory.

2b. Run the following to set paths.

    export LD_LIBRARY_PATH=/usr/local/lib
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
  1. run sudo cp assets/99-gpio.rules /etc/udev/rules.d/

Usage Instructions

  1. Run sudo udevadm control --reload-rules
  2. In the spicerack directory, run make
  3. Run sudo alsactl init
  4. Run chmod 777 spicerack
  5. Run ./pocketsphinx_continuous -inmic yes
  6. 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

Colors

  • purple
  • green
  • teal
  • brown
  • red
  • khaki
Clone this wiki locally