Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Grammar Members
Include Protected Members
Include Inherited Members
A run-time object that references a speech recognition grammar, which an application can use to define the constraints for speech recognition.
The Grammar type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Grammar(Stream) | Initializes a new instance of the Grammar class from a Stream. | |
Grammar(String) | Initializes a new instance of the Grammar class from a file. | |
Grammar(GrammarBuilder) | Initializes a new instance of the Grammar class from a GrammarBuilder object. | |
Grammar(GrammarInfo) | Creates a new instance of the Grammar class from a GrammarInfo instance. | |
Grammar(SrgsDocument) | Initializes a new instance of the Grammar class from an SrgsDocument object. | |
Grammar(Stream, String) | Initializes a new instance of the Grammar class from a Stream and specifies a root rule. | |
Grammar(String, String) | Initializes a new instance of the Grammar class from a file and specifies a root rule. | |
Grammar(SrgsDocument, String) | Initializes a new instance of a Grammar class from an SrgsDocument object and specifies a root rule. | |
Grammar(Stream, String, Uri) | Initializes a new instance of the Grammar class from a stream, specifies a root rule, and defines a base Uniform Resource Identifier (URI) to resolve relative rule references. | |
Grammar(String, String, Uri) | Initializes a new instance of the Grammar class from a file, specifies a root rule, and defines a base Uniform Resource Identifier (URI) to resolve relative rule references. | |
Grammar(SrgsDocument, String, Uri) | Initializes a new instance of a Grammar class from an SrgsDocument object, specifies a root rule, and defines a base Uniform Resource Identifier (URI) to resolve relative rule references. |
Top
Properties
Name | Description | |
---|---|---|
Enabled | Gets or sets a value that controls whether a Grammar can be used by a recognition engine to perform recognition. | |
Loaded | Gets whether a Grammar has been loaded by a recognition engine. | |
Name | Gets or sets the name of a Grammar object. | |
Priority | Gets or sets the priority value of a Grammar object. | |
RuleName | Gets the identifier of the root rule or entry point rule of a Grammar instance. | |
Weight | Gets or sets the weight value of a Grammar object. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (inherited from Object) | |
Finalize | (inherited from Object) | |
GetHashCode | (inherited from Object) | |
GetType | (inherited from Object) | |
IsPronounceable | Gets whether the SpeechRecognitionEngine can pronounce the word and where the word's pronunciation is defined. | |
MemberwiseClone | (inherited from Object) | |
ToString | (inherited from Object) |
Top
Events
Name | Description | |
---|---|---|
SpeechRecognized | Raised when a SpeechRecognitionEngine instance performs recognition using the Grammar object. |
Top