Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsDocument Members
Include Protected Members
Include Inherited Members
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. |
Top
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. |
Top
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. |
Top