GrammarBuilder Members

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Provides a mechanism for programmatically building the constraints for a speech recognition grammar.

The GrammarBuilder type exposes the following members.

Constructors

  NameDescription
Public methodGrammarBuilder()()()()Initializes a new, empty instance of the GrammarBuilder class.
Public methodGrammarBuilder(String)Initializes a new instance of the GrammarBuilder class from a sequence of words.
Public methodGrammarBuilder(Choices)Initializes a new instance of the GrammarBuilder class from a set of alternatives.
Public methodGrammarBuilder(SemanticResultKey)Initializes a new instance of the GrammarBuilder class from a semantic key.
Public methodGrammarBuilder(SemanticResultValue)Initializes a new instance of the GrammarBuilder class from a semantic value.
Public methodGrammarBuilder(String, SubsetMatchingMode)Initializes a new instance of the GrammarBuilder class from a subset of a sequence of words.
Public methodGrammarBuilder(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.
Public methodGrammarBuilder(GrammarBuilder, Int32, Int32)Initializes a new instance of the GrammarBuilder class for a repeated element.
Top

Properties

  NameDescription
Public propertyCultureGets or sets the culture of the grammar.
Public propertyDebugShowPhrasesGets a string that shows the contents and structure of the grammar contained by the GrammarBuilder.
Top

Methods

  NameDescription
Public methodStatic memberAdd(String, GrammarBuilder)Creates a new GrammarBuilder that contains a phrase followed by a GrammarBuilder object.
Public methodStatic memberAdd(Choices, GrammarBuilder)Creates a new GrammarBuilder that contains a Choices object followed by a GrammarBuilder object.
Public methodStatic memberAdd(GrammarBuilder, Choices)Creates a new GrammarBuilder that contains a GrammarBuilder object followed by a Choices object.
Public methodStatic memberAdd(GrammarBuilder, GrammarBuilder)Creates a new GrammarBuilder that contains a sequence of two GrammarBuilder objects.
Public methodStatic memberAdd(GrammarBuilder, String)Creates a new GrammarBuilder that contains a GrammarBuilder object followed by a phrase.
Public methodAppend(String)Appends a phrase to the current sequence of grammar elements.
Public methodAppend(Choices)Appends a set of alternatives to the current sequence of grammar elements.
Public methodAppend(GrammarBuilder)Appends a grammar element to the current sequence of grammar elements.
Public methodAppend(SemanticResultKey)Appends a semantic key to the current sequence of grammar elements.
Public methodAppend(SemanticResultValue)Appends a semantic value to the current sequence of grammar elements.
Public methodAppend(String, SubsetMatchingMode)Appends an element for a subset of a phrase to the current sequence of grammar elements.
Public methodAppend(String, Int32, Int32)Appends a repeated phrase to the current sequence of grammar elements.
Public methodAppend(GrammarBuilder, Int32, Int32)Appends a repeated grammar element to the current sequence of grammar elements.
Public methodAppendDictation()()()()Appends grammar logic to provide access the default, free-text, dictation grammar provided by the Microsoft Speech Platform SDK 11.
Public methodAppendDictation(String)Appends grammar logic to provide access to a special-function dictation grammar specified by a string.
Public methodAppendRuleReference(String)Appends a grammar definition file to the current sequence of grammar elements.
Public methodAppendRuleReference(String, String)Appends the specified rule of a grammar definition file to the current sequence of grammar elements.
Public methodAppendWildcardAppends a recognition grammar element that matches any input to the current sequence of grammar elements.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Operators

See Also