你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

VoiceAgentRealtimeEvent type

从语音代理实时连接接收到的事件。

已知事件保留其生成的类型和归一化。 未识别的线类型被 VoiceAgentUnknownEvent包裹。 切换 type 到狭窄的已知事件,或 type === "unknown" 在将事件传递给已知事件处理程序前排除。

type VoiceAgentRealtimeEvent = VoiceAgentServerEvent | VoiceAgentUnknownEvent