Grammar Members

Provides run time support for obtaining and managing Speech grammar information.

The following tables list the members exposed by the Grammar type.

Public Constructors

Name Description
Grammar Overloaded. Creates instances of SpeechRecognizer objects.

Top

Public Properties

Name Description
Dd146819.pubproperty(en-us,office.13).gif Enabled Gets or sets a value controlling whether a Grammar can be used by a recognition engine.
Dd146819.pubproperty(en-us,office.13).gif Loaded Ready only attribute, indicates if a Grammar has been loaded into a recognition engine.
Dd146819.pubproperty(en-us,office.13).gif Name Gets or sets the user-friendly name of an instance of Grammar.
Dd146819.pubproperty(en-us,office.13).gif Priority Set or gets a value used as a tie breaker when one or more grammars have returned a recognized phrase.
Dd146819.pubproperty(en-us,office.13).gif RuleName Read-only value containing the name of root or entry point rule of a valid Grammar instance.
Dd146819.pubproperty(en-us,office.13).gif Weight Property used to control the influence of a grammar on a recognition engine's algorithm.

Top

Public Methods

(see also Protected Methods )

Name Description
Dd146819.pubmethod(en-us,office.13).gif Equals Overloaded. (inherited from Object )
Dd146819.pubmethod(en-us,office.13).gif GetHashCode (inherited from Object )
Dd146819.pubmethod(en-us,office.13).gif GetType (inherited from Object )
Dd146819.pubmethod(en-us,office.13).gif IsPronounceable Returns information about the pronounceability of the specified word.
Dd146819.pubmethod(en-us,office.13).gifDd146819.static(en-us,office.13).gif ReferenceEquals (inherited from Object )
Dd146819.pubmethod(en-us,office.13).gif ToString (inherited from Object )

Top

Protected Methods

Name Description
Dd146819.protmethod(en-us,office.13).gif Finalize (inherited from Object )
Dd146819.protmethod(en-us,office.13).gif MemberwiseClone (inherited from Object )

Top

Public Events

Name Description
Dd146819.pubevent(en-us,office.13).gif SpeechRecognized The event raised when the current grammar has been used by the recognition engine to detect speech and find one or more phrases with sufficient confidence levels.

Top

See Also

Reference

Grammar Class
Microsoft.Speech.Recognition Namespace
Microsoft.Speech.Recognition.SrgsGrammar
SrgsDocument
SrgsRule
SrgsTag
OnInit
OnParse
OnError
OnRecognition
SrgsRule
Document
GrammarBuilder

Other Resources

Speech Recognition Grammar Specification