Compartir a través de


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
Public method SrgsDocument() Initializes a new instance of the SrgsDocument class.
Public method 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.
Public method SrgsDocument(XmlReader) Initializes a new instance of the SrgsDocument class from an instance of XmlReader that references an XML-format grammar file.
Public method SrgsDocument(GrammarBuilder) Initializes a new instance of the SrgsDocument class from a GrammarBuilder object.
Public method 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
Public property Culture Gets or sets the culture information for the SrgsDocument instance.
Public property Mode Gets or sets the mode for the SrgsDocument class.
Public property PhoneticAlphabet Gets or sets the phonetic alphabet of the SrgsDocument class.
Public property Root Gets or sets the root rule of the SrgsDocument class.
Public property Rules Gets the collection of rules that are currently defined for the SrgsDocument class.
Public property XmlBase Gets or sets the base URI of the SrgsDocument class.

Top

Methods

  Name Description
Public method AddLexicon Adds a link to the specified lexicon.
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method ToString (inherited from Object)
Public method 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

See Also

Reference

SrgsDocument Class

Microsoft.Speech.Recognition.SrgsGrammar Namespace