Using JSGF grammar instead of DMP language model (use -jsgf instead of -lm) in CMU Sphinx (pocketsphinx)

I need to train CMU Sphinx offline in my Android app. I downloaded this project that uses this parameter, but when I run it, I have this error: Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1) . This error also occurs when Sphinx cannot find the acoustic model. I found the answer to my question here , but this does not work for me. What am I doing wrong, can someone provide me with some kind of textbook or good answer?

So, the question is how to use .jsgf files from .DMP files as a language model for Pocketsphinx, for example, in the Recognizer task in an Inimesed project?

+8
java android speech-recognition cmusphinx
source share
1 answer

If CMU Sphinx works similarly on Android and Windows, the following may help:

http://www.aiaioo.com/cms/index.php?id=28 http://homepages.abdn.ac.uk/k.vdeemter/pages/teaching/NLP/practicals/JSGFGrammar.html http: // www.w3.org/TR/jsgf/

Example JSGF file:

 #JSGF V1.0; grammar hello; public <command> = ( open | close ) ( computer | window | music | note ); 

Save the above grammar in the text file "hello.gram", then run the sphinx with:

 pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -jsgf hello.gram -dict hub4.5000.dic 
+3
source share

All Articles