Add realtime-grok-local-vad.py example

Grok Realtime supports manual mode (turn_detection=None) which disables
its server-side VAD and lets local VAD drive turn boundaries — same
pattern as OpenAI Realtime's turn_detection=False. Add the matching
*-local-vad.py variant for parity, and point the Grok service docstring
at it.
This commit is contained in:
Paul Kompfner
2026-05-21 13:00:34 -04:00
parent 3b668dc937
commit 58027484b2
3 changed files with 267 additions and 2 deletions

View File

@@ -0,0 +1 @@
- Added `examples/realtime/realtime-grok-local-vad.py`, a variant of the base Grok Realtime example that disables Grok's server-side turn detection (`turn_detection=None`, manual mode) and instead drives turn boundaries locally with `SileroVADAnalyzer` wired into the user aggregator. Mirrors the OpenAI Realtime local-VAD variant. Server-emitted turn frames are preferred when available.