How to mix Grammar (Rules) & Dictation (Free speech) with SpeechRecognizer in C#

后端 未结 2 1967
再見小時候
再見小時候 2020-12-13 22:11

I really like Microsofts latest speech recognition (and SpeechSynthesis) offerings.

http://msdn.microsoft.com/en-us/library/ms554855.aspx

http://estellasays.

2条回答
  •  囚心锁ツ
    2020-12-13 22:30

    You have two choices:

    1. You can use the dictation node for free-text using GrammarBuilder::AppendDictation. The problem is that since the recognizer doesn't have any context, the recognitions aren't the highest quality.
    2. You can use a textbuffer node and provide a set of items using GrammarBuilder::Append(String, SubsetMatchingMode). This will give the recognizer enough context to get good quality recognitions without having to rebuild the entire grammar tree every time.

提交回复
热议问题