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);