AgentSkillsCN

adk-rust-realtime-voice

利用 ADK-Rust 实现实时语音代理,涵盖音频格式、事件处理以及流媒体传输的可靠性。适用于构建或调试 adk-realtime 中的语音交互功能时使用。

SKILL.md
--- frontmatter
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

  1. Select provider backend and audio format early.
  2. Validate session configuration and VAD settings.
  3. Handle client/server events with explicit match branches.
  4. Verify tool call lifecycle in realtime paths.

Guardrails

  1. Fail fast on unsupported modalities.
  2. Keep audio encoding assumptions explicit.
  3. Add coverage for cancellation, interruptions, and error events.

References

  • Use references/realtime-voice-playbook.md.