GrammarBuilder Constructor

Constructs a new instance of GrammarBuilder.

Remarks

In addition to a default constructor, GrammarBuilder instances may be constructed for Choices, System.String, SemanticResultValue, SemanticResultKey objects.

In addition to the constructors, new instances of GrammarBuilder can be obtained by combine two other grammar defining objects (GrammarBuilder, System.String,Choices) by using the overloaded static methods Add and op_Addition

Overload List

Name Description
GrammarBuilder ()
Default constructor for the GrammarBuilder object.
GrammarBuilder (Choices)
Constructs a GrammarBuilder object from a phrase expressed as a Choices instance.
GrammarBuilder (SemanticResultKey)
Constructs a GrammarBuilder object from a phrase expressed as a SemanticResultKey instance.
GrammarBuilder (SemanticResultValue)
Constructs a GrammarBuilder object from a phrase expressed as a SemanticResultValue instance.
GrammarBuilder (String)
Constructs a GrammarBuilder object from a phrase expressed as a string.
GrammarBuilder (String, SubsetMatchingMode)
GrammarBuilder (GrammarBuilder, Int32, Int32)
Constructs a GrammarBuilder that can generate a Grammar requiring that audio input is to be checked for matching against repeated occurrences of a pattern defined by a GrammarBuilder.
GrammarBuilder (String, Int32, Int32)
Constructs a GrammarBuilder that can generate a Grammar requiring that audio input is to be checked for matching against repeated occurrences of a given phrase.

See Also

Reference

GrammarBuilder Class
GrammarBuilder Members
Microsoft.Speech.Recognition Namespace