ISpeechGrammarRuleState AddSpecialTransition Method

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechGrammarRuleState

AddSpecialTransition Method


The AddSpecialTransition method adds a special transition from the current rule state to another rule state in the same rule.

When the word sequence accepted by the special transition is spoken, the rule can go from the current state to the DestinationState. A rule accepts a word sequence when the rule can go from the initial state to the end state using the word sequence.

Special transitions may not be supported by all speech engines. There are three types of special transitions:


ISpeechGrammarRuleState.AddSpecialTransition(
     DestinationState As ISpeechGrammarRuleState,
     Type As SpeechSpecialTransitionType,
     [PropertyName As String = ""],
     [PropertyId As Long = 0],
     [PropertyValue As Variant = 0],
     [Weight As Single = 1.0]
)

Parameters

DestinationState
Specifies the DestinationState, or the state where the transition ends. DestinationState of Nothing means the end state of the rule.
Type
Specifies the Type.
PropertyName
[Optional] Specifies the PropertyName.
PropertyId
[Optional] Specifies the PropertyId.
PropertyValue
[Optional] Specifies the PropertyValue.
Weight
[Optional] Specifies the Weight.

Return Value

None.