0

这是困扰我一段时间的事情。我正在开发一个使用语音控制的 C# 应用程序,我想知道是否有任何可能的方法来加载 DictationGrammar,然后向其中添加单词以提高准确性。例如:我正在尝试使用它来搜索 google 和 bing。它几乎认不出“google”这个词,也从来没有认出“bing”这个词。有没有办法做到这一点?DictationGrammar 根本不是很准确(它不断添加单词)。目前,我正在加载这样的语法:

 PACSREC.LoadGrammarAsync(new DictationGrammar());
4

1 回答 1

1

You can add words to the user lexicon, and the DictationGrammar will implicitly add those words.

Unfortunately, the Lexicon APIs aren't exposed via the System.Speech.Recognition APIs; instead, you'll have to use the SpeechLib (automation-compatible) APIs to do so. See this question for examples.

于 2015-04-21T21:21:09.330 回答