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.
459 B
459 B
- The
wait_for_transcript_to_end_user_turn=Falsepattern also works with OpenAI Realtime. Setturn_detection=FalseinsideOpenAIRealtimeLLMService.Settings.session_properties.audio.inputto disable OpenAI's server-side VAD; the service then drives turn boundaries from local turn detection, sendinginput_audio_buffer.commit+response.createonUserStoppedSpeakingFrame. Seeexamples/realtime/realtime-openai-local-vad.pyfor the full pattern.