ISpeechGrammarRule Interface (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpeechGrammarRule

The ISpeechGrammarRule automation interface defines the properties and methods of a speech grammar rule.

Automation Interface Elements

The ISpeechGrammarRule automation interface contains the following elements:

Properties Description
Attributes Property Returns information about the attributes of a speech grammar rule.
Id Property Specifies the ID of the speech grammar rule.
InitialState Property Specifies the initial state of the speech grammar rule.
Name Property Specifies the name of the speech grammar rule.
Methods Description
AddResource Method Adds a string to a speech rule.
AddState Method Adds a state to a speech rule.
Clear Method Clears a rule, leaving only its initial state.