SrgsDocument Members

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

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

  NameDescription
Public methodSrgsDocument()()()()Initializes a new instance of the SrgsDocument class.
Public methodSrgsDocument(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 methodSrgsDocument(XmlReader)Initializes a new instance of the SrgsDocument class from an instance of XmlReader that references an XML-format grammar file.
Public methodSrgsDocument(GrammarBuilder)Initializes a new instance of the SrgsDocument class from a GrammarBuilder object.
Public methodSrgsDocument(SrgsRule)Initializes a new instance of the SrgsDocument class and specifies an SrgsRule object to be the root rule of the grammar.
Top

Properties

  NameDescription
Public propertyCultureGets or sets the culture information for the SrgsDocument instance.
Public propertyModeGets or sets the mode for the SrgsDocument class.
Public propertyPhoneticAlphabetGets or sets the phonetic alphabet of the SrgsDocument class.
Public propertyRootGets or sets the root rule of the SrgsDocument class.
Public propertyRulesGets the collection of rules that are currently defined for the SrgsDocument class.
Public propertyXmlBaseGets or sets the base URI of the SrgsDocument class.
Top

Methods

  NameDescription
Public methodAddLexiconAdds a link to the specified lexicon.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodWriteSrgsWrites 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