Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

SPAUDIOSTATE

SPAUDIOSTATE contains the possible states for the audio input or audio output.

Used directly by the ISpAudio::SetState method and as a member of the SPAUDIOSTATUS structure.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef enum _SPAUDIOSTATE { SPAS_CLOSED, SPAS_STOP, SPAS_PAUSE, SPAS_RUN } SPAUDIOSTATE;</strong> </pre>

Elements

  • SPAS_CLOSED
    Audio is stopped and closed. For multimedia audio input devices such as sound cards, the device will be released. It can be opened by other processes and potentially made unavailable to the Speech Platform.
  • SPAS_STOP
    Audio is stopped. For multimedia audio input devices such as sound cards, the audio device will not be closed. This guarantees that it can be restarted by the Speech Platform 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.