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
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
agentState | AgentState | The 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.metadata | src/core/events/types.ts:94 |
probability | number | Speech probability of the frame that triggered the barge-in (0–1). | - | src/core/events/types.ts:1270 |
timestamp | number | Unix timestamp (in milliseconds) when the event occurred. Remarks Useful for latency measurements and debugging the pipeline timing. | BaseEvent.timestamp | src/core/events/types.ts:86 |
type | "vad.bargeIn" | Discriminant for this event type. | - | src/core/events/types.ts:1267 |