ISpeechGrammarRule Interface (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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:


PropertiesDescription
Attributes PropertyReturns information about the attributes of a speech grammar rule.
Id PropertySpecifies the ID of the speech grammar rule.
InitialState PropertySpecifies the initial state of the speech grammar rule.
Name PropertySpecifies the name of the speech grammar rule.
MethodsDescription
AddResource MethodAdds a string to a speech rule.
AddState MethodAdds a state to a speech rule.
Clear MethodClears a rule, leaving only its initial state.
Show: