Share via


ISpeechGrammarRuleState AddRuleTransition Method (SAPI 5.3)

Microsoft Speech API 5.3

Interface: ISpeechGrammarRuleState

AddRuleTransition Method

The AddRuleTransition method adds a rule reference transition from the current rule state to another rule state in the same rule.

When the word sequence accepted by the referenced rule 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.

  
    ISpeechGrammarRuleState.AddRuleTransition(
     DestinationState As ISpeechGrammarRuleState,
     Rule As ISpeechGrammarRule,
     [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.
  • Rule
    Specifies the Rule.
  • PropertyName
    [Optional] Specifies the PropertyName.
  • PropertyId
    [Optional] Specifies the PropertyId.
  • PropertyValue
    [Optional] Specifies the PropertyValue.
  • Weight
    [Optional] Specifies the Weight.

Return Value

None.