Skip to content

RealtimeAgentTurnDetection

Turn-detection configuration for the Realtime session.

Defined in: src/providers/agent/openai/types.ts:24

Turn-detection configuration for the Realtime session.

Remarks

Mirrors the wire format’s turn_detection object. Pass null to disable server-side VAD entirely (the agent will then never detect end-of-turn on its own — only useful with manual response triggering).

Properties

PropertyTypeDescriptionDefined in
eagerness?"auto" | "low" | "medium" | "high"semantic_vad only — how eagerly the model ends the user’s turn.src/providers/agent/openai/types.ts:29
prefixPaddingMs?numberserver_vad only — audio to include before detected speech, in ms.src/providers/agent/openai/types.ts:35
silenceDurationMs?numberserver_vad only — silence duration that ends the turn, in ms.src/providers/agent/openai/types.ts:38
threshold?numberserver_vad only — activation threshold (0–1).src/providers/agent/openai/types.ts:32
type"server_vad" | "semantic_vad"VAD flavor: amplitude-based ('server_vad') or model-based ('semantic_vad').src/providers/agent/openai/types.ts:26

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency