svn checkout
http://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/branches/pocketsphinx-0.6
cd pocketsphinx-0.6/sphinxbase
./autogen.sh
make
make check
sudo make install
cd ../pocketsphinx
./autogen.sh
make
make check
sudo make install
export
LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
export PS_BASE=/usr/local
and run source ~/.bashrc to apply the changes.
We have set up some PocketSphinx examples on the lab machines; you can make sure that your install is working by copying them to your own computer; the examples can be found in /proj/speech/tools/pocketsphinx/example/ on any lab machine. To run the Python example and check that your installation works, run
To run the C example, first you need to compile it:
gcc -o example example.c -DMODELDIR=\"`pkg-config
--variable=modeldir pocketsphinx`\" `pkg-config --cflags --libs pocketsphinx sphinxbase`
As with the Python example, you should see a bunch of output from
PocketSphinx, followed by:
Recognized: do four eight eight meters
Project Part 2:
If you want to use your own install of PocketSphinx to do Project Part 2, you will need to copy the additional acoustic models from lab to your own computer:
sudo scp -r
yourusername@gatto.cs.columbia.edu:/proj/speech/tools/pocketsphinx/share/pocketsphinx/model/hmm/en_US
$PS_BASE/share/pocketsphinx/model/hmm/
sudo scp -r
yourusername@gatto.cs.columbia.edu:/proj/speech/tools/pocketsphinx/share/pocketsphinx/model/hmm/us
$PS_BASE/share/pocketsphinx/model/hmm/
You will also need to copy the recognition script from lab to
whichever directory on your own computer you are using for the
assignment. The recognition script lives in
/proj/speech/users/cs4706/pasr/recognize_wav.py
Please note that while these instructions are provided for your convenience for working on the project at home, you are still responsible for making sure that your scripts run on the Speech Lab machines by the submission deadline.