A runtime 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. |
TopProperties
| 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. |
TopMethods
Events
See Also