Microsoft Speech Platform
SPAUDIOSTATE
SPAUDIOSTATE sets the audio input or output state to one of four possible states.
Used directly by the ISpAudio::SetState method and as a member of the SPAUDIOSTATUS structure.
typedef enum _SPAUDIOSTATE
{
SPAS_CLOSED,
SPAS_STOP,
SPAS_PAUSE,
SPAS_RUN
} SPAUDIOSTATE;
Elements
- SPAS_CLOSED
- Audio is stopped and closed. For multimedia audio input devices (sound cards etc.), the device will be released. It can be opened by other processes and potentially made unavailable to SAPI.
- SPAS_STOP
- Audio is stopped. For multimedia audio input devices (sound cards etc.), the audio device will not be closed. This guarantees that it can be restarted by SAPI without an intervening process opening it.
- SPAS_PAUSE
- Audio is paused. Staying in this state for too long a period will cause audio loss.
- SPAS_RUN
- Audio is enabled.