GrammarBuilder.AppendDictation Method ()

 

Appends the default dictation grammar to the current sequence of grammar elements.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public void AppendDictation()

For more information on dictation grammars, see DictationGrammar.

The following example creates a speech recognition grammar that incorporates dictation.


GrammarBuilder builder = new GrammarBuilder();
builder.Append("begin");
builder.AppendDictation();
builder.Append("end");
Grammar grammarWithDictation = new Grammar(builder);
grammarWithDictation.Name = "Grammar with Dictation";

.NET Framework
Available since 3.0
Return to top
Show: