在CMU Sphinx中使用JSGF语法而不是DMP语言模型(使用-jsgf而不是-lm)(pocketsphinx)

Ser*_*kar 8 java android speech-recognition cmusphinx

我需要在我的Android应用程序中离线训练CMU Sphinx.我下载了这个使用此参数的项目,但是当我启动它时出现此错误:Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1).当Sphinx无法找到声学模型时,我也有这个错误.我在这里找到了我的问题的答案,但它对我不起作用.我做错了什么,任何人都可以提供任何教程,或者一个好的答案?

那么问题是如何使用.jsgf文件而不是.DMP文件作为Pocketsphinx的语言模型,就像它在Inimesed项目中的Recognizer任务中使用的一样?

her*_*h10 3

如果 CMU Sphinx 在 Android 和 Windows 上的工作方式类似,则以下内容可能会有所帮助:

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/

JSGF 文件示例:

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

将上述语法保存在名为“hello.gram”的文本文件中,然后运行 ​​sphinx:

pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -jsgf hello.gram -dict hub4.5000.dic
Run Code Online (Sandbox Code Playgroud)