Share via


SPTRANSITIONENTRY (SAPI 5.3)

Microsoft Speech API 5.3

SPTRANSITIONENTRY

  
    typedef struct SPTRANSITIONENTRY
{
    SPTRANSITIONID          ID;
    SPSTATEHANDLE           hNextState;
    BYTE                    Type;       // SPTRANSITIONTYPE
    char                    RequiredConfidence;
    struct
        {
        DWORD               fHasProperty;
        };
    float                   Weight;
    union
        {
        struct
            {
            SPSTATEHANDLE   hRuleInitialState;  // Only if Type == SPTRANSRULE
            SPRULEHANDLE    hRule;
            void           *pvClientRuleContext;
            };
        struct
            {
            SPWORDHANDLE    hWord;              // Only if Type == SPTRANSWORD
            void           *pvClientWordContext;
            };
        struct
            {
            void           *pvGrammarCookie;    // Only if Type == SPTRANSTEXTBUF or SPTRANSWILDCARD
            };
        };
} SPTRANSITIONENTRY;

Members

  • ID
    ID of this transition.
  • hNextState
    Handle to the end state of this transition
  • Type
    Type of this transition.
  • RequiredConfidence
    Required confidence for this transition.
  • fHasProperty
    Flag to indicate if this transition has a semantic property associated with it.
  • Weight
    The relative weight of this transition (relative to other transitions out of the same state).
  • hRuleInitialState
    If this is an SPRULETRANS, it points to the rule's initial state.
  • hRule
    If this is an SPRULETRANS, it contains the rule's handle.
  • pvClientRuleContext
    Client context set using ISpSREngineSite::SetRuleClientContext.htm
  • hWord
    If this is an SPWORDTRANS, it contains the word handle.
  • pvClientWordContext
    Client context set using ISpSREngineSite::SetWordClientContext.htm
  • pvGrammarCookie
    Grammar cookie needed to associate a text buffer with this transition.