Class TcpAudioOutputExperimental

Audio output that streams the agent's TTS frames to the broker as audio_output console messages (resampled to the wire rate) and drives the flush/clear playout handshake. A flush blocks the agent turn until the broker reports audio_playback_finished (or the buffer is cleared on interruption).

Hierarchy (view full)

Constructors

Properties

sampleRate?: number
EVENT_PLAYBACK_FINISHED: "playbackFinished" = 'playbackFinished'
EVENT_PLAYBACK_STARTED: "playbackStarted" = 'playbackStarted'

Accessors

  • get canPause(): boolean
  • Whether this output and all outputs in the chain support pause/resume.

    Returns boolean

Methods

  • Called when playback actually starts (first frame is sent to output). Developers building audio sinks should call this when the first frame is captured.

    Parameters

    • createdAt: number

    Returns void