Created
May 17, 2012 20:33
-
-
Save tolleiv/2721434 to your computer and use it in GitHub Desktop.
CMUSphinx (tutorial) setup
This file contains hidden or 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
#!/bin/bash | |
# see http://cmusphinx.sourceforge.net/wiki/tutorialam | |
# see http://mnemonicplace.blogspot.de/2010/06/cmu-sphinx-error-wave2feat-error-while.html | |
sudo apt-get install build-essential autoconf libtool automake python-dev subversion bison vim | |
export PATH=/usr/local/bin:/usr/local/libexec/sphinxtrain:$PATH | |
export LD_LIBRARY_PATH=/usr/local/lib | |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | |
mkdir ~/tutorial | |
cd ~/tutorial | |
svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase/ | |
cd sphinxbase | |
./autogen.sh | |
./configure | |
make | |
make check | |
make install | |
cd src | |
make | |
make install | |
cd ~/tutorial | |
svn co https://cmusphinx.svn.sourceforge.net:/svnroot/cmusphinx/trunk/SphinxTrain | |
cd SphinxTrain | |
./autogen.sh | |
./configure | |
make | |
make check | |
sudo make install | |
cd ~/tutorial | |
svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinx3/ | |
cd sphinx3 | |
./autogen.sh | |
./configure | |
make | |
make check | |
sudo make install | |
#sudo su -c 'echo "/usr/local/lib" >> /etc/ld.so.conf' | |
cd ~/tutorial | |
wget http://www.speech.cs.cmu.edu/databases/an4/an4_sphere.tar.gz | |
tar -xzf an4_sphere.tar.gz | |
#wget http://www.speech.cs.cmu.edu/databases/an4/an4_wav.tar.gz | |
cd ~/tutorial/an4 | |
#scripts_pl/setup_tutorial.pl an4 | |
sphinxtrain -t an4 setup | |
sed -i -e 's/$CFG_QUEUE_TYPE = "Queue";/$CFG_QUEUE_TYPE = "Queue::POSIX";/' etc/sphinx_train.cfg | |
sphinxtrain run | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I want to build an acoustic model with a limited dictionary . can you kindly post an example shell script for a new acoustic model creation. As i dont have much experience it will be very helpful to follow the guidelines to do.
email: [email protected]
Thanks !