Defines a design-time object that is used to build strongly typed runtime grammars that conform to the Speech Recognition Grammar Specification (SRGS) Version 1.0.
The SrgsDocument type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SrgsDocument()()()() | Initializes a new instance of the SrgsDocument class. | |
SrgsDocument(String) | Initializes a new instance of the SrgsDocument class specifying the location of the XML document that is used to fill in the SrgsDocument instance. | |
SrgsDocument(XmlReader) | Initializes a new instance of the SrgsDocument class from an instance of XmlReader that references an XML-format grammar file. | |
SrgsDocument(GrammarBuilder) | Initializes a new instance of the SrgsDocument class from a GrammarBuilder object. | |
SrgsDocument(SrgsRule) | Initializes a new instance of the SrgsDocument class and specifies an SrgsRule object to be the root rule of the grammar. |
Properties
Name | Description | |
---|---|---|
Culture | Gets or sets the culture information for the SrgsDocument instance. | |
Mode | Gets or sets the mode for the SrgsDocument class. | |
PhoneticAlphabet | Gets or sets the phonetic alphabet of the SrgsDocument class. | |
Root | Gets or sets the root rule of the SrgsDocument class. | |
Rules | Gets the collection of rules that are currently defined for the SrgsDocument class. | |
XmlBase | Gets or sets the base URI of the SrgsDocument class. |
Methods
Name | Description | |
---|---|---|
AddLexicon | Adds a link to the specified lexicon. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
WriteSrgs | Writes the contents of the SrgsDocument object to an XML-format grammar file that conforms to the Speech Recognition Grammar Specification (SRGS) Version 1.0. |