Share via


SPRULESTATE (SAPI 5.3)

Microsoft Speech API 5.3

SPRULESTATE

SPRULESTATE is used when setting the state of a grammar rule or setting the state of dictation (for example, active/inactive, etc).

  
    typedef enum SPRULESTATE
{
    SPRS_INACTIVE,
    SPRS_ACTIVE,
    SPRS_ACTIVE_WITH_AUTO_PAUSE,
    SPRS_ACTIVE_USER_DELIMITED
} SPRULESTATE;

Elements

  • SPRS_INACTIVE
    Grammar rule is inactive.
  • SPRS_ACTIVE
    Grammar rule is active.
  • SPRS_ACTIVE_WITH_AUTO_PAUSE
    SR engine will be placed in a paused state when the grammar rule is recognized. Also known as an "auto-pause" rule.
  • SPRS_ACTIVE_USER_DELIMITED
    Indicates that the audio will start when the user starts speaking and will end when the user stops speaking.