Installation and Usage - TexasInstrumentsDIY/SpiceRack GitHub Wiki
Installation Instructions
-
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
- run
sudo cp assets/99-gpio.rules /etc/udev/rules.d/
Usage Instructions
- Run
sudo udevadm control --reload-rules
- In the spicerack directory, run
make
- Run
sudo alsactl init
- Run
chmod 777 spicerack
- Run
./pocketsphinx_continuous -inmic yes
- 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