【发布时间】:2014-09-18 05:48:33
【问题描述】:
我有这样的语法:
#JSGF V1.0;
grammar actions;
public <item> = save this story | skip this story | stop the news;
但是,它可以识别远程匹配这些短语的所有内容。有没有办法让我只在他们真的说这句话时才认出来?
我目前正在使用这段代码来加载语法:
File actionsGrammar = new File(modelsDir, "grammar/actions.gram");
recognizer.addGrammarSearch("actions", actionsGrammar);
例如说save blah blah this blah blah story 不应该匹配,bake chris boring 也不应该匹配。谢谢!
【问题讨论】:
标签: java android cmusphinx pocketsphinx-android