AudioPlaybackState
Runtime state of the audio playback pipeline.
type AudioPlaybackState = "idle" | "buffering" | "playing" | "paused" | "stopped";
Defined in: src/core/types/audio.ts:393
Runtime state of the audio playback pipeline.
Remarks
Tracks the lifecycle of TTS audio playback within the SDK. State transitions follow this flow:
idle -> buffering -> playing -> paused | stopped -> idle
'idle'- No audio is queued or playing'buffering'- Audio chunks are being buffered before playback begins'playing'- Audio is actively being played through the speakers'paused'- Playback is temporarily paused'stopped'- Playback has been stopped (queue cleared)
See
- AudioCaptureState for the corresponding capture state
- AudioOutputConfig for playback configuration options