Share via


SpeechAudioState (SAPI 5.3)

Microsoft Speech API 5.3

SpeechAudioState Enum

The SpeechAudioState enumeration lists the four possible audio input and output states.

This is used by ISpeechAudioStatus.State property and ISpeechAudio.SetState method.

Definition

  Enum SpeechAudioState
    SASClosed = 0
    SASStop = 1
    SASPause = 2
    SASRun = 3
End Enum

Elements

  • SASClosed
    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.
  • SASStop
    Audio is stopped. For multimedia audio input devices (sound cards etc.), the audio device will not be closed. This guarantees that SAPI can restart it without an intervening process opening it.
  • SASPause
    Audio is paused. Staying in this state for too long a period will cause audio loss.
  • SASRun
    Audio is enabled.