classafFancomSapi::ISpeechGrammarRuleState
sys::Obj afFancomSapi::ISpeechGrammarRuleState
Presents the properties and methods of a speech grammar rule state.
http://msdn.microsoft.com/en-us/library/ee125283%28v=vs.85%29.aspx
See Example application of ISpGrammarBuilder for examples of how to build Grammars. The example is in C++ (or sumthing) but translates pretty well.
@clsid {D4286F2C-EE67-45AE-B928-28D695362EDA}
- addRuleTransition
Void addRuleTransition(ISpeechGrammarRuleState? destinationState, ISpeechGrammarRule? rule, Str? propertyName := "", Int? propertyId := (Int?)0, Variant? propertyValue := Variant.<ctor>(""), Float? weight := (Float?)1.0)
Adds a rule reference transition from the current rule state to another rule state in the same rule.
- addSpecialTransition
Void addSpecialTransition(ISpeechGrammarRuleState? destinationState, SpeechSpecialTransitionType? type, Str? propertyName := "", Int? propertyId := (Int?)0, Variant? propertyValue := Variant.<ctor>(""), Float? weight := (Float?)1.0)
Adds a special transition from the current rule state to another rule state in the same rule
- addWordTransition
Void addWordTransition(ISpeechGrammarRuleState? destState, Str? words, Str? separators := " ", SpeechGrammarWordType? type := SpeechGrammarWordType.SGLexical, Str? propertyName := "", Int? propertyId := (Int?)0, Variant? propertyValue := Variant.<ctor>(""), Float? weight := (Float?)1.0)
Adds a word transition from this rule state to another rule state in the same rule
- makeFromDispatch
new makeFromDispatch(Dispatch dispatch)
- rule
ISpeechGrammarRule? rule { private set }
Specifies the rule to which the rule state belongs.
- transitions
ISpeechGrammarRuleStateTransitions? transitions { private set }
Specifies the set of transitions out of the rule state.