AS AgentScopeAPI 手册 / API Reference
实时语音Realtime voice · 单元Unit 10

实时语音:低延迟、可打断的交互Realtime voice: low-latency, interruptible interaction

实时链路由采集、传输、模型、播放四段组成。学完本单元,你能理解 VAD、轮次提交、打断取消和资源释放,并定位延迟与回声问题。The realtime path spans capture, transport, model and playback. After this unit you understand VAD, turn commits, barge-in cancellation and resource release, and can diagnose latency and echo issues.

10 道题questions 5 张概念卡concept cards 1 个相关事故related incidents

学习目标Learning goals

  • 说出实时语音链路的四个延迟段Name the four latency segments of realtime voice
  • 使用 connect、push_audio、commit_turn 与 cancel_responseUse connect, push_audio, commit_turn and cancel_response
  • 设计打断与资源回收策略Design barge-in and resource-reclamation strategies

概念闪卡Concept cards

点击卡片翻面查看解释。Click a card to flip it and reveal the explanation.

关键 APIKey APIs

点击进入对应的 Python 或 Java 参考页。Open the exact Python or Java reference for each type.

问题巩固Check yourself

完成 10 道题;答错会自动进入错题本。Answer all ten questions. Wrong answers are added to your wrong-answer book automatically.

01Python 实时模型的公共基类是?What is the common base class for Python realtime models?
02Python 中负责实时会话的智能体类是?Which Python agent class handles realtime sessions?
03建立实时模型连接的方法是?How do you establish a realtime model connection?
04向实时模型推送音频的方法是?How do you push audio into a realtime model?
05取消当前未完成响应的 API 是?Which API cancels an unfinished response?
06结束一轮用户语音输入并请求响应的 API 是?Which API ends a user turn and requests a response?
07语音活动检测的抽象基类是?What is the voice activity detection abstraction?
08音频传输的抽象基类是?What is the audio transport abstraction?
09实时语音延迟应该拆成哪四段度量?Which four segments should realtime latency be measured in?
10实时连接使用完毕后必须做什么?What must you do after a realtime connection is no longer needed?

接着看的生产事故Production incidents to read next

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.