Add realtime-openai-local-vad example

Mirrors the Gemini Live local-VAD example for OpenAI Realtime, showing
that `wait_for_transcript_to_end_user_turn=False` composes cleanly
with `turn_detection=False`. The OpenAI Realtime service already wires
`UserStoppedSpeakingFrame` to `input_audio_buffer.commit` +
`response.create` when `turn_detection=False`, so the example is the
only new code needed.
This commit is contained in:
Paul Kompfner
2026-05-18 11:50:16 -04:00
parent ea96b7aec7
commit 638294c1cc
2 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1 @@
- The `wait_for_transcript_to_end_user_turn=False` pattern also works with OpenAI Realtime. Set `turn_detection=False` inside `OpenAIRealtimeLLMService.Settings.session_properties.audio.input` to disable OpenAI's server-side VAD; the service then drives turn boundaries from local turn detection, sending `input_audio_buffer.commit` + `response.create` on `UserStoppedSpeakingFrame`. See `examples/realtime/realtime-openai-local-vad.py` for the full pattern.