Skip to content

VADBargeInEvent

Emitted when local VAD speech detection interrupted the agent.

Defined in: src/core/events/types.ts:1265

Emitted when local VAD speech detection interrupted the agent.

Remarks

Fires when VADConfig.bargeIn is enabled and sustained speech was detected while the agent was speaking or thinking. The pipeline has already stopped playback and aborted the in-flight generation by the time this event is delivered.

See

VADEvent for all VAD event types

Extends

  • BaseEvent

Properties

PropertyTypeDescriptionInherited fromDefined in
agentStateAgentStateThe agent state at the moment of interruption.-src/core/events/types.ts:1273
metadata?Record<string, unknown>Optional metadata associated with the event. Remarks May contain provider-specific data or debugging information.BaseEvent.metadatasrc/core/events/types.ts:94
probabilitynumberSpeech probability of the frame that triggered the barge-in (0–1).-src/core/events/types.ts:1270
timestampnumberUnix timestamp (in milliseconds) when the event occurred. Remarks Useful for latency measurements and debugging the pipeline timing.BaseEvent.timestampsrc/core/events/types.ts:86
type"vad.bargeIn"Discriminant for this event type.-src/core/events/types.ts:1267

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency