Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created May 17, 2012 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tolleiv/2721434 to your computer and use it in GitHub Desktop.
Save tolleiv/2721434 to your computer and use it in GitHub Desktop.
CMUSphinx (tutorial) setup
#!/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
@bsnayak
Copy link

bsnayak commented Jan 25, 2014

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: bsnayak.nist@gmail.com

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment