Partager via


SPSTATEINFO (SAPI 5.4)

Microsoft Speech API 5.4

SPSTATEINFO

SPSTATEINFO contains information about the transitions from a single state in a context-free grammar.

SAPI provides information when the speech recognition engine requests grammar state information (see ISpSREngineSite::GetStateInfo).

  
    typedef struct SPSTATEINFO
{
    ULONG               cAllocatedEntries;
SPTRANSITIONENTRY  *pTransitions;
    ULONG               cEpsilons;
    ULONG               cRules;
    ULONG               cWords;
    ULONG               cSpecialTransitions;
} SPSTATEINFO;

Members

  • cAllocatedEntries
    Total number of entries in pTransitions
  • pTransitions
    Pointer to a SPTRANSITIONENTRY structure.
  • cEpsilons
    Number of SPTRANSEPSILON transitions in pTransitions.
  • cRules
    Number of SPTRANSRULE transitions in pTransitions.
  • cWords
    Number of SPTRANSWORD transitions in pTransitions.
  • cSpecialTransitions
    Number of special transitions (SPTRANSTEXTBUF, SPTRANSWILDCARD, or SPTRANSDICTATION) in pTransitions.