GrammarBuilder Members |
GrammarBuilder Class Constructors Methods Operators Properties See Also Send Feedback |
Provides a mechanism for programmatically building the constraints for a speech recognition grammar.
The GrammarBuilder type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GrammarBuilder()()()() | Initializes a new, empty instance of the GrammarBuilder class. | |
GrammarBuilder(String) | Initializes a new instance of the GrammarBuilder class from a sequence of words. | |
GrammarBuilder(Choices) | Initializes a new instance of the GrammarBuilder class from a set of alternatives. | |
GrammarBuilder(SemanticResultKey) | Initializes a new instance of the GrammarBuilder class from a semantic key. | |
GrammarBuilder(SemanticResultValue) | Initializes a new instance of the GrammarBuilder class from a semantic value. | |
GrammarBuilder(String, SubsetMatchingMode) | Initializes a new instance of the GrammarBuilder class from a subset of a sequence of words. | |
GrammarBuilder(String, Int32, Int32) | Initializes a new instance of the GrammarBuilder class from the sequence of words in a String and specifies how many times the String can be repeated. | |
GrammarBuilder(GrammarBuilder, Int32, Int32) | Initializes a new instance of the GrammarBuilder class for a repeated element. |
Properties
Name | Description | |
---|---|---|
Culture | Gets or sets the culture of the grammar. | |
DebugShowPhrases | Gets a string that shows the contents and structure of the grammar contained by the GrammarBuilder. |
Methods
Name | Description | |
---|---|---|
Add(String, GrammarBuilder) | Creates a new GrammarBuilder that contains a phrase followed by a GrammarBuilder object. | |
Add(Choices, GrammarBuilder) | Creates a new GrammarBuilder that contains a Choices object followed by a GrammarBuilder object. | |
Add(GrammarBuilder, Choices) | Creates a new GrammarBuilder that contains a GrammarBuilder object followed by a Choices object. | |
Add(GrammarBuilder, GrammarBuilder) | Creates a new GrammarBuilder that contains a sequence of two GrammarBuilder objects. | |
Add(GrammarBuilder, String) | Creates a new GrammarBuilder that contains a GrammarBuilder object followed by a phrase. | |
Append(String) | Appends a phrase to the current sequence of grammar elements. | |
Append(Choices) | Appends a set of alternatives to the current sequence of grammar elements. | |
Append(GrammarBuilder) | Appends a grammar element to the current sequence of grammar elements. | |
Append(SemanticResultKey) | Appends a semantic key to the current sequence of grammar elements. | |
Append(SemanticResultValue) | Appends a semantic value to the current sequence of grammar elements. | |
Append(String, SubsetMatchingMode) | Appends an element for a subset of a phrase to the current sequence of grammar elements. | |
Append(String, Int32, Int32) | Appends a repeated phrase to the current sequence of grammar elements. | |
Append(GrammarBuilder, Int32, Int32) | Appends a repeated grammar element to the current sequence of grammar elements. | |
AppendDictation()()()() | Appends grammar logic to provide access the default, free-text, dictation grammar provided by the Microsoft Speech Platform SDK 11. | |
AppendDictation(String) | Appends grammar logic to provide access to a special-function dictation grammar specified by a string. | |
AppendRuleReference(String) | Appends a grammar definition file to the current sequence of grammar elements. | |
AppendRuleReference(String, String) | Appends the specified rule of a grammar definition file to the current sequence of grammar elements. | |
AppendWildcard | Appends a recognition grammar element that matches any input to the current sequence of grammar elements. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Operators
Top