liucy2007975 / freespeech-vr

Automatically exported from code.google.com/p/freespeech-vr
GNU General Public License v3.0
5 stars 0 forks source link

Ububntu problems fixed and unfixed #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
So I downloaded the zip kit.
Then I went to apt and installed the pocketsphinx, pocketspinx-dbg, and 
pocketsphinx-dev packages along with python-gst0.10 (already there) , 
python-gst0.10-dbg, python-gst0.10-dev. CMU-Cam_Toolkit_v2 I downloaded and 
built and installed. 
firing it up -- python crash. could not load the gstreamer libs. futzed around 
on the net and determined that you must set GST_PLUGIN_PATH in the environment,
So I did that.  
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-0.10  -- OK
then it fires up and the pocketsphinx module segfaults in dict.c
on the dict_free() function. 
I Tried to debug it with gdb thusly:
gdb /usr/bin/python
gdb>> set args -m pdb freespeech.py
and determined it was indeed in /usr/local/lib/libpocketsphinx.so.

So I ran it under python-dbg but that led to a huge bunch of missing debug 
libraries in the linux system so I futszed with that for awhile but never got 
any closer.
So I pulled pocketsphinx out of the system (removed the packages) and 
downloaded the new ones from the main site and built sphinxbase and 
pocketsphinx with the -ggdb flag. Wa La!  
Wonderful window appeared ,and it started spitting out words as I talked. 
( Wrong ones <-> <->). 
Now it quits writing to the window after the first run -- restoring the old lm/ 
files and deleting the new ones brings it back.

Original issue reported on code.google.com by spikeysn...@gmail.com on 11 Mar 2013 at 10:55

Attachments:

GoogleCodeExporter commented 9 years ago
New version uses unicode throughout. Ought to work better. 

Original comment by themany...@gmail.com on 12 Mar 2013 at 7:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Also,make sure you have v2 of the CMU-Cambridge Statistical Language Modeling 
Toolkit v2 (CMU-CSLMT)
This version most likely will not be available through the package manager annd 
will have to be downloaded from 
http://www.speech.cs.cmu.edu/SLM/CMU-Cam_Toolkit_v2.tar.gz and compiled. That 
will fix having to restore the old lm/ files. I am updating the link in the 
wiki and README which guides people to an older version that sucks and creates 
bad lm/* files.

Original comment by themany...@gmail.com on 13 Mar 2013 at 7:39