classafFancomSapi::ISpeechGrammarRule
sys::Obj afFancomSapi::ISpeechGrammarRule
Defines the properties and methods of a speech grammar rule.
http://msdn.microsoft.com/en-us/library/ee125300%28v=vs.85%29.aspx
@clsid {AFE719CF-5DD1-44F2-999C-7A399F1CFCCC}
- addResource
Void addResource(Str resourceName, Str resourceValue)
Adds a string to a speech rule.
This method is used with an interpreter rule, in which case the interpreter can call the C/C++ function
ISpCFGInterpreterSite::GetResourceValue
to get the value of a specified resource name.- addState
ISpeechGrammarRuleState? addState()
Adds a state to a speech rule.
This method can be used with the
ISpeechGrammarRuleState
methodsAddRuleTransition
,AddSpecialTransition
, orAddWordTransition
to modify speech rules programmatically.- attributes
SpeechRuleAttributes? attributes { private set }
Specifies the ID of the speech grammar rule.
- clear
Void clear()
Clears a rule, leaving only its initial state.
- id
Int? id { private set }
Specifies the ID of the speech grammar rule.
- initialState
ISpeechGrammarRuleState? initialState { private set }
Specifies the initial state of the speech grammar rule.
- makeFromDispatch
new makeFromDispatch(Dispatch dispatch)
- name
Str? name { private set }
Specifies the name of the speech grammar rule.