name: adk-rust-realtime-voice description: Implement realtime voice agents with ADK-Rust, including audio formats, event handling, and streaming reliability. Use when building or debugging voice interactions in adk-realtime.
ADK Rust Realtime Voice
Overview
Build low-latency bidirectional audio flows with explicit session/event handling.
Workflow
- Select provider backend and audio format early.
- Validate session configuration and VAD settings.
- Handle client/server events with explicit match branches.
- Verify tool call lifecycle in realtime paths.
- Configure interruption detection (Manual or Automatic).
- Use SessionUpdateConfig for mid-session context mutation (swap instructions/tools without dropping the call).
Guardrails
- Fail fast on unsupported modalities.
- Keep audio encoding assumptions explicit.
- Add coverage for cancellation, interruptions, and error events.
- Use ContextMutationOutcome to handle provider differences (OpenAI: Applied, Gemini: RequiresResumption).
References
- Use
references/realtime-voice-playbook.md.