brief-book-57365
05/27/2026, 8:55 AMtall-airline-16756
05/27/2026, 8:55 AMtall-airline-16756
05/27/2026, 8:55 AMturn_detection="manual" on the AgentSession.
2. Run a realtime vision/pose detector on the user’s video track (client-side or server-side) to detect the gesture (e.g., hand raise).
3. When your detector sees the gesture, programmatically start/commit a user turn (for example, call session.commit_user_turn() or inject a synthetic user message) so the agent processes the event and responds.
4. Optionally include the detected frame or a short description in the message/context so the agent knows what happened.
Example pattern (conceptual)
# pseudo-code
if detect_hand_raise(frame):
# add a message or commit the user turn so the agent responds
session.commit_user_turn()
Limitations to keep in mind
• The realtime API will not natively convert visual events into turns; you must detect the gesture and trigger the turn yourself.
• Latency depends on your vision model and where you run it (client vs server).
If you want, tell me:
• Where you plan to run the gesture detection (browser, server, or edge)
• Which SDK/language you’re using
I can then suggest specific libraries (pose estimators) and show a small code example for your environment.
Sources: Video | LiveKit Documentation | Turns overview | LiveKit Documentation, with interactive elementsbrief-book-57365
05/27/2026, 10:26 AMtall-airline-16756
05/27/2026, 10:26 AMturn_detection="manual" on the AgentSession and call session.commit_user_turn() or inject a synthetic user message). The model will then respond using the provided context (you can include the detected event or a frame).
Limitations to note
• Gemini 3.1 realtime preview models do not support proactive audio/affective dialog features.
• Latency and reliability depend on where and how you run the vision detector.
If you want, tell me:
• Which SDK/language and environment (browser, server, edge) you’re using, and whether you prefer a client- or server-side detector — I can suggest vision libraries and a small code example to trigger the agent. Sources: Gemini Live API plugin | LiveKit Documentation | Video | LiveKit Documentation, with interactive elements