GrammarBuilder::AppendDictation Method (String^)
.NET Framework (current version)
Appends the specified dictation grammar to the current sequence of grammar elements.
Assembly: System.Speech (in System.Speech.dll)
Parameters
- category
-
Type:
System::String^
The category of the dictation grammar to append.
To use the spelling dictation grammar, set category to spelling.
For more information on dictation grammars, see DictationGrammar.
The following example creates a speech recognition grammar that incorporates the spelling dictation grammar rules.
GrammarBuilder builder = new GrammarBuilder(); builder.Append("begin"); builder.AppendDictation("spelling"); builder.Append("end"); Grammar grammarWithDictation = new Grammar(builder); grammarWithDictation.Name = "Grammar with Dictation";
.NET Framework
Available since 3.0
Available since 3.0
Show: