GrammarBuilder.AppendDictation Method (String)

 

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

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

public void AppendDictation(
	string category
)

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
Return to top
Show: