Skip to content

AudioCaptureState

Runtime state of the audio capture pipeline.

type AudioCaptureState = "inactive" | "starting" | "active" | "paused" | "stopping";

Defined in: src/core/types/audio.ts:373

Runtime state of the audio capture pipeline.

Remarks

Tracks the lifecycle of microphone audio capture within the SDK. State transitions follow this flow:

inactive -> starting -> active -> paused | stopping -> inactive

  • 'inactive' - Capture is not running
  • 'starting' - Capture is initializing (requesting permissions, setting up AudioContext)
  • 'active' - Audio is being captured and sent to the STT provider
  • 'paused' - Capture is temporarily paused (e.g., during TTS playback)
  • 'stopping' - Capture is shutting down and releasing resources

See

  • MicrophonePermissionState for permission state
  • AudioPlaybackState for the corresponding playback state

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency