Sphinx3 to Pure Data

Know that it's a quick hack, i would prefer a better solution. Also i am looking for help… Please contact me if you are interested: moc.11h11|ataderup#moc.11h11|ataderup


speech recognition in pure data from psc on Vimeo.

1- Basic software installation

sudo apt-get install build-essential autoconf libtool automake libasound2-dev python-dev subversion sox libsox-fmt-all

2- Getting and installing Sphinx3

Download:
sphinx3 - http://sourceforge.net/project/showfiles.php?group_id=1904&package_id=68406
sphinxbase - http://sourceforge.net/project/showfiles.php?group_id=1904&package_id=199515

mkdir sphinx && cd sphinx
tar xzpf sphinx3...
tar xzpf sphinxbase...

cd sphinxbase
./autogen.sh --prefix=/usr/local
make && make install

cd sphinx3
./autogen.sh --prefix=/usr/local
make && make install

ldconfig

cd python
nano setup.py (MODIFY THE PATHS)
python setup.py install

3- Download the patch, python script and lexical and language model

wget http://puredata.info/Members/patrick/sphinx2pd
tar xzpf sphinx2pd.tar.gz
cd sphinx2pd
pd sphinx2pd.pd

4- Download pdmtl abstractions (optional)

svn co https://devel.goto10.org/svn/pdmtl/trunk/pdmtl
add pdmtl to your Path...
add the libs "tof" and "iemmatrix" to Startup...

Make your own lexical and language modeling files (optional)

Upload your textfile containing your puredata commands here:
http://www.speech.cs.cmu.edu/tools/lmtool.html

Download the gzip'd tar file & unzip it to /dic
Dump in binary:

svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/share/lm3g2dmp
cd lm3g2dmp && make && cd ..
lm3g2dmp/lm3g2dmp dic/XXXX.sent.arpabo dic
mv dic/XXXX.sent.arpabo.DMP dic/pd.dmp
mv dic/XXXX.dic dic/pd.dic
Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
0
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License