<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I partially figured out my problem.<div><br></div><div>Communicator only works for 8Khz. For 16Khz, you need WSJ1. I wonder why it isn't included with Freeswitch?</div><div><br></div><div>WSJ1 is available from this page:</div><div><a href="http://www.speech.cs.cmu.edu/sphinx/models/">http://www.speech.cs.cmu.edu/sphinx/models/</a></div><div><br></div><div>Direct link for the latest release:</div><div><a href="http://www.speech.cs.cmu.edu/sphinx/models/wsj_jan2008/wsj_all_sc_5000_20080401.tar.gz">http://www.speech.cs.cmu.edu/sphinx/models/wsj_jan2008/wsj_all_sc_5000_20080401.tar.gz</a></div><div><br></div><div>Rename the extracted folder to wsj1, and place in grammar/model.</div><div><br></div><div>For FS to use it, in&nbsp;pocketsphinx.conf.xml, set wideband-model:</div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 9px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 9px; ">&lt;param name="wideband-model" value="wsj1"/&gt;</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 9px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 9px; ">ASR works fine for me now at 16Khz.</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 9px; "><br></span></div><div>Should I add this to the wiki? Maybe FS could have automatically installed wsj1, but I was clueless about the required build option.</div><div><br></div><div>Bryan</div><div><br><div><div>On Jul 27, 2011, at 6:46 PM, Bryan Smart wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Tried a build with a latest GIT, with PocketSphinx enabled, and get:<div><br></div><div><div>Creating mod_pocketsphinx.la... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>/bin/sed: can't read /usr/src/freeswitch/libs/pocketsphinx-0.7/../sphinxbase/src</div><div>/libsphinxbase/libsphinxbase.la: No such file or directory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>quiet_libtool: link: `/usr/src/freeswitch/libs/pocketsphinx-0.7/../sphinxbase/sr</div><div>c/libsphinxbase/libsphinxbase.la' is not a valid libtool archive &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>cat: .libs/mod_pocketsphinx.log: No such&nbsp;</div><div>make[5]: *** [mod_pocketsphinx.la] Error 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div></div><div><br></div><div>I don't pretend to fully understand the build system, but the makefile seems to be trying to go to libs/sphinxbase for files, when that directory doesn't exist. The currently downloaded version of sphinxbase has the version appended to the directory name, as in sphinxbase-0.7. The Sphinx readme warns that the root should be named sphinxbase.</div><div><br></div><div>I did:</div><div><br></div><div>ln -s sphinxbase-0.7 sphinxbase</div><div><br></div><div>and the build finished without problems.</div><div><br></div><div>PocketSphinx works fine on a hardware phone using ULAW, but, when I use a softphone with 16Khz Speex, it doesn't. Instead, I get this</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal 'Courier New'; ">2011-07-27 21:43:14.651803 [WARNING] mod_pocketsphinx.c:147 Can't open speech model /usr/local/freeswitch/grammar/model/wsj1.</div></div><div><br></div><div>The only item in the model directory is communicator. I thought wsj1 was the old model. What in Freeswitch would try to use wsj1 over communicator based on the codec/rate? The mod_pocketsphinx wiki page says that 16Khz is a supported sampling rate, so I'm guessing that there is a special reason why Speex doesn't work, or else that this is a bug.</div><div><br></div><div>Bryan</div><div><br></div></div></blockquote></div><br></div></body></html>