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

Source

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

Source

ISpeechGrammarRuleState? addState()

Adds a state to a speech rule.

This method can be used with the ISpeechGrammarRuleState methods AddRuleTransition, AddSpecialTransition, or AddWordTransition to modify speech rules programmatically.

attributes

Source

SpeechRuleAttributes? attributes { private set }

Specifies the ID of the speech grammar rule.

clear

Source

Void clear()

Clears a rule, leaving only its initial state.

id

Source

Int? id { private set }

Specifies the ID of the speech grammar rule.

initialState

Source

ISpeechGrammarRuleState? initialState { private set }

Specifies the initial state of the speech grammar rule.

makeFromDispatch

Source

new makeFromDispatch(Dispatch dispatch)

name

Source

Str? name { private set }

Specifies the name of the speech grammar rule.