-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create install_speech_recognition.md
- Loading branch information
Raúl de Santos
authored
Nov 28, 2016
1 parent
f321ec7
commit 470470b
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Install Speech Recognition | ||
|
||
We use Speech Recognition for give voice orders. | ||
|
||
```bash | ||
# Speech Recognition: | ||
sudo apt-get install libgstreamer1.0-dev | ||
sudo apt-get install libgstreamer-plugins-base1.0-dev | ||
sudo apt-get install autoconf | ||
sudo apt-get install bison | ||
|
||
# Installation sphinxbase | ||
cd | ||
cd repos | ||
git clone https://github.com/cmusphinx/sphinxbase.git | ||
cd sphinxbase | ||
./autogen.sh | ||
./configure | ||
make -j4 | ||
make check # to be sure that all is ok | ||
sudo make install | ||
|
||
# Installation pocketsphinx | ||
cd | ||
cd repos | ||
git clone https://github.com/cmusphinx/pocketsphinx | ||
cd pocketsphinx | ||
./autogen.sh | ||
./configure | ||
make -j4 clean all | ||
make -j4 check | ||
sudo make install | ||
|
||
# We need to configure the path to look for shared libaries | ||
echo "export LD_LIBRARY_PATH=/usr/local/lib" >> ~/.bashrc | ||
echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" >> ~/.bashrc | ||
echo "export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0" >> ~/.bashrc | ||
|
||
# To verify that GStreamer can find the plugin. You should get a large amount of output, ending with something like this: | ||
# decoder : The underlying decoder | ||
# flags: readable | ||
# Boxed pointer of type "PSDecoder" | ||
|
||
gst-inspect-1.0 pocketsphinx | ||
|
||
# to test that all is runnin ok | ||
sudo modprobe snd_pcm_oss | ||
pocketsphinx_continuous -inmic yes | ||
``` | ||
|
||
Our software integrates the previous dependencies. Note that you will be prompted for your password upon using '''sudo''' a couple of times: | ||
|
||
```bash | ||
cd # go home | ||
mkdir -p repos; cd repos # make $HOME/repos if it doesn't exist; then, enter it | ||
git clone https://github.com/roboticslab-uc3m/teo-head.git # Download teo-head software from the repository | ||
cd teo-head; mkdir build; cd build; cmake .. # Configure the teo-head software | ||
make # Compile | ||
sudo make install # Install :-) | ||
``` | ||
|
||
You may want to (from the same build dir): | ||
```bash | ||
echo "export TEO_HEAD_DIR=`pwd`" >> ~/.bashrc | ||
``` | ||
|
||
For additional TEO options use ccmake instead of cmake. |