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

8

I need to train CMU Sphinx offline in my android app. I downloaded this project that use this parameter but when I start it I have this error: Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1). This error I also have when Sphinx can not find the accoustic model. I found answer on my question here, but it is does not work for me. What I am doing wrong, can anybody can provide me any tutorial, or a good answer?

So the question is how to use .jsgf files istead of .DMP files as language model for Pocketsphinx like it used in Recognizer task in Inimesed project?

java
android
speech-recognition
cmusphinx
asked on Stack Overflow Feb 2, 2013 by Sergey Pekar • edited May 23, 2017 by Community

1 Answer

3

If CMU Sphinx works similarly on Android and on 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 a text file called "hello.gram", then run sphinx with:

pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -jsgf hello.gram -dict hub4.5000.dic
answered on Stack Overflow Apr 11, 2013 by herrlich10 • edited Apr 11, 2013 by herrlich10

User contributions licensed under CC BY-SA 3.0