Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我怎么能只识别CMU Sphinx中的某些短语?_Java_Android_Cmusphinx_Pocketsphinx Android - Fatal编程技术网

Java 我怎么能只识别CMU Sphinx中的某些短语?

Java 我怎么能只识别CMU Sphinx中的某些短语?,java,android,cmusphinx,pocketsphinx-android,Java,Android,Cmusphinx,Pocketsphinx Android,我的语法是这样的: #JSGF V1.0; grammar actions; public <item> = save this story | skip this story | stop the news; 例如,说“救命”之类的废话这类废话故事不应该相配,也不应该令人厌烦。谢谢 是的,您可以在关键字定位模式下使用pocketsphinx。sphinx4中还没有关键字定位模式 你可以在这里找到Android演示 File actionsGrammar = new File(

我的语法是这样的:

#JSGF V1.0;

grammar actions;

public <item> = save this story | skip this story | stop the news;

例如,说“救命”之类的废话这类废话故事不应该相配,也不应该令人厌烦。谢谢

是的,您可以在关键字定位模式下使用pocketsphinx。sphinx4中还没有关键字定位模式

你可以在这里找到Android演示

File actionsGrammar = new File(modelsDir, "grammar/actions.gram");
recognizer.addGrammarSearch("actions", actionsGrammar);