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
page revision: 21, last edited: 25 Aug 2009 16:05
Hi everybody i have tried it out this example.
but it shows me error.
i cant set path for this nano setup.py (MODIFY THE PATHS)
so if anybody nows it.
please reply
byeeeee
hi,
what's the error?
setting the path is easy, simply open setup.py in nano or any text editor.
hi,
I WANT THIS soooo badly to work.. after much tinkering and such I've gotten far, but I can't seem to make lm3g2dmp… i get "CM_funcs.c:44:20: error: malloc.h: No such file or directory" when attemping.
any suggestions would be superly appreciated!!
I'm on os x 10.5 intel.
cheers,
owen
Owen: you have to #include <sys/malloc.h> on osx
This can be done on Windows as well?
Post preview:
Close preview