服务端事件由服务端推送到客户端。所有服务端事件均包含 event_id(服务端自动生成的唯一标识)和 type(事件类型)公共字段。
用户指南:实时语音对话(Qwen-Audio-Realtime)。如需了解事件交互时序,请参见 WebSocket API。
error
请求错误或服务异常时返回。客户端错误(invalid_request_error)不中断连接;服务端错误(server_error)将终止连接。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 error。 |
| error | object | 错误的详细信息。 |
| error.type | string | 错误类型,如 invalid_request_error(客户端错误)或 server_error(服务端错误)。 |
| error.code | string | 错误码。 |
| error.message | string | 错误信息。 |
| error.param | string | 与错误相关的参数。 |
{
"event_id": "event_xxx",
"type": "error",
"error": {
"type": "invalid_request_error",
"code": "invalid_value",
"message": "Cannot create response while another response is in progress.",
"param": "response.create"
}
}
session.created
连接建立后服务端发送的首个事件,携带会话默认配置。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 session.created。 |
| session | object | 会话的配置信息。 |
| session.object | string | 固定为 realtime.session。 |
| session.model | string | 使用的模型名称。 |
| session.modalities | array | 模型输出模态设置。 |
| session.voice | string | 模型生成音频的音色,为系统音色名称或声音复刻音色的 voice_id。 |
| session.input_audio_transcription | object | 语音转录的配置。 |
| session.input_audio_transcription.model | string | 语音转录模型,如 fun-asr。 |
| session.turn_detection | object | 轮次检测(VAD)的配置。 |
| session.id | string | 会话唯一标识符。 |
{
"event_id": "event_KiKZC2zrhNsKFPZ5cTpyA",
"type": "session.created",
"session": {
"object": "realtime.session",
"model": "qwen-audio-3.0-realtime-plus",
"modalities": ["text", "audio"],
"voice": "longanqian",
"input_audio_transcription": {
"model": "fun-asr"
},
"turn_detection": {
"type": "server_vad",
"threshold": 0.5,
"silence_duration_ms": 800
},
"id": "sess_A1LbG2D63WELBSawRbpq8"
}
}
session.updated
收到 session.update 请求后,若处理成功,则返回此事件,携带更新后的完整会话配置;若出错,则返回 error 事件。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 session.updated。 |
| session | object | 更新后的完整会话配置信息。结构与 session.created 中的 session 对象一致。 |
{
"event_id": "event_FMG6kiHbILCGiqXFPA98e",
"type": "session.updated",
"session": {
"id": "sess_A1LbG2D63WELBSawRbpq8",
"object": "realtime.session",
"model": "qwen-audio-3.0-realtime-plus",
"modalities": ["text", "audio"],
"voice": "longanqian",
"input_audio_transcription": {
"model": "fun-asr"
},
"turn_detection": {
"type": "smart_turn",
"threshold": 0.1,
"silence_duration_ms": 900
}
}
}
VAD 检测到语音开始(server_vad / smart_turn 模式)。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 input_audio_buffer.speech_started。 |
| audio_start_ms | integer | 语音开始的时间戳(毫秒)。 |
| item_id | string | 该段语音最终提交时将创建的 item 的 ID。 |
{
"event_id": "event_xxx",
"type": "input_audio_buffer.speech_started",
"audio_start_ms": 1200,
"item_id": "item_xxx"
}
VAD 检测到语音结束(server_vad / smart_turn 模式)。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 input_audio_buffer.speech_stopped。 |
| audio_end_ms | integer | 语音结束的时间戳(毫秒)。 |
| item_id | string | 将创建的用户消息项的 ID。 |
| reason | string | 仅 smart_turn 模式返回此字段。取值为 turn_invalid 时表示当前 turn 被判定为无效轮(无语义内容),不会触发推理。有效轮次时不返回此字段。 |
{
"event_id": "event_xxx",
"type": "input_audio_buffer.speech_stopped",
"audio_end_ms": 3400,
"item_id": "item_xxx",
"reason": "turn_invalid"
}
音频缓冲已提交为用户消息(push-to-talk 的 commit 或 VAD 自动提交)。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 input_audio_buffer.committed。 |
| previous_item_id | string | 前一条对话项的 ID。 |
| item_id | string | 创建的用户消息项的 ID。 |
{
"event_id": "event_xxx",
"type": "input_audio_buffer.committed",
"previous_item_id": "item_xxx",
"item_id": "item_xxx"
}
音频缓冲已清空(仅 push-to-talk 模式)。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 input_audio_buffer.cleared。 |
{
"event_id": "event_xxx",
"type": "input_audio_buffer.cleared"
}
conversation.item.created
新的对话项创建成功。用户音频提交、客户端手动创建或助手响应开始时触发。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.created。 |
| previous_item_id | string | 前一条对话项的 ID。 |
| item | object | 创建的对话项。 |
| item.id | string | 对话项的唯一标识符。 |
| item.object | string | 固定为 realtime.item。 |
| item.type | string | 对话项类型:message(普通消息)或 function_call(函数调用)。 |
| item.status | string | 对话项状态,如 in_progress、completed。 |
| item.role | string | 消息角色,如 user、assistant。仅 message 类型包含。 |
| item.content | array | 消息内容列表。仅 message 类型包含。 |
{
"event_id": "event_xxx",
"type": "conversation.item.created",
"previous_item_id": "item_xxx",
"item": {
"id": "item_xxx",
"object": "realtime.item",
"type": "message",
"status": "in_progress",
"role": "assistant",
"content": []
}
}
conversation.item.deleted
对话项已删除。客户端发送 conversation.item.delete 后返回此确认事件。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.deleted。 |
| item_id | string | 已删除的对话项 ID。 |
{
"event_id": "event_xxx",
"type": "conversation.item.deleted",
"item_id": "item_xxx"
}
conversation.item.retrieved
查询对话项成功返回。客户端发送 conversation.item.retrieve 后返回此事件。音频类型 content 仅包含转写文本,不返回原始音频数据。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.retrieved。 |
| item | object | 查询到的对话项完整信息。 |
| item.id | string | 对话项的唯一标识符。 |
| item.object | string | 固定为 realtime.item。 |
| item.type | string | 对话项类型:message(普通消息)或 function_call(函数调用)。 |
| item.role | string | 消息角色,如 user、assistant。仅 message 类型包含。 |
| item.content | array | 消息内容列表。音频类型 content 仅包含转写文本,不返回原始音频数据。 |
{
"event_id": "event_xxx",
"type": "conversation.item.retrieved",
"item": {
"id": "item_xxx",
"object": "realtime.item",
"type": "message",
"role": "user",
"content": [
{
"type": "input_audio",
"transcript": "你好"
}
]
}
}
ASR 转写增量结果,在语音识别过程中流式返回。包含情绪和语种检测信息。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.input_audio_transcription.delta。 |
| item_id | string | 关联的对话项 ID。 |
| content_index | integer | 内容部分的索引。 |
| text | string | 已确定的转写文本。 |
| stash | string | 尚未确定的暂存文本。 |
{
"event_id": "event_xxx",
"type": "conversation.item.input_audio_transcription.delta",
"item_id": "item_xxx",
"content_index": 0,
"text": "你好",
"stash": "世界"
}
ASR 转写最终结果。转写文本会写入对应 item 的 transcript 字段。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.input_audio_transcription.completed。 |
| item_id | string | 关联的对话项 ID。 |
| content_index | integer | 内容部分的索引。 |
| transcript | string | 完整的转写文本。 |
{
"event_id": "event_xxx",
"type": "conversation.item.input_audio_transcription.completed",
"item_id": "item_xxx",
"content_index": 0,
"transcript": "你好世界"
}
ASR 转写失败。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.input_audio_transcription.failed。 |
| item_id | string | 关联的对话项 ID。 |
| content_index | integer | 内容部分的索引。 |
| error | object | 错误的详细信息。 |
| error.type | string | 错误类型,如 transcription_error。 |
| error.code | string | 错误码,如 transcription_failed。 |
| error.message | string | 错误信息。 |
{
"event_id": "event_xxx",
"type": "conversation.item.input_audio_transcription.failed",
"item_id": "item_xxx",
"content_index": 0,
"error": {
"type": "transcription_error",
"code": "transcription_failed",
"message": "ASR transcription failed"
}
}
conversation.item.ambient_audio_transcription.delta
仅 smart_turn 模式。该事件不会关联到对话上下文中的任何 item。
环境音频转写增量结果。当 VAD 检测到语音活动但语义判定为非有效轮次(如噪声、"嗯"、"啊"等无语义内容)时,将 ASR 识别结果以 ambient 事件透传给客户端。item_id 为独立生成的临时 ID。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.ambient_audio_transcription.delta。 |
| item_id | string | 独立生成的临时 ID,不关联到对话上下文中的任何 item。 |
| content_index | integer | 内容部分的索引。 |
| text | string | 已确定的转写文本。 |
| stash | string | 尚未确定的暂存文本。 |
{
"event_id": "event_xxx",
"type": "conversation.item.ambient_audio_transcription.delta",
"item_id": "item_xxx",
"content_index": 0,
"text": "嗯",
"stash": ""
}
conversation.item.ambient_audio_transcription.completed
仅 smart_turn 模式。该转写结果不会写入对话上下文。
环境音频转写最终结果。与 delta 事件配对,表示一段环境音频的转写结束。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 conversation.item.ambient_audio_transcription.completed。 |
| item_id | string | 独立生成的临时 ID,不关联到对话上下文。 |
| content_index | integer | 内容部分的索引。 |
| transcript | string | 完整的转写文本。 |
{
"event_id": "event_xxx",
"type": "conversation.item.ambient_audio_transcription.completed",
"item_id": "item_xxx",
"content_index": 0,
"transcript": "嗯"
}
response.created
一轮模型推理开始。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.created。 |
| response | object | 响应对象。 |
| response.id | string | 响应的唯一标识符。 |
| response.object | string | 固定为 realtime.response。 |
| response.status | string | 响应状态,如 in_progress。 |
| response.modalities | array | 模型输出模态设置。 |
| response.voice | string | 模型生成音频的音色,为系统音色名称或声音复刻音色的 voice_id。 |
| response.output | array | 响应的输出项列表,初始为空数组。 |
{
"event_id": "event_xxx",
"type": "response.created",
"response": {
"id": "resp_xxx",
"object": "realtime.response",
"status": "in_progress",
"modalities": ["text", "audio"],
"voice": "longanqian",
"output": []
}
}
response.output_item.added
响应中新增一个输出项。普通回复的输出项类型为 message;Function Calling 的输出项类型为 function_call。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.output_item.added。 |
| response_id | string | 关联的响应 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| item | object | 新增的输出项。 |
| item.id | string | 输出项的唯一标识符。 |
| item.object | string | 固定为 realtime.item。 |
| item.type | string | 输出项类型:message(普通消息)或 function_call(函数调用)。 |
| item.status | string | 输出项状态,如 in_progress。 |
| item.role | string | 消息角色,固定为 assistant。仅 message 类型包含。 |
| item.content | array | 消息内容列表。仅 message 类型包含。 |
普通消息输出项示例:
{
"event_id": "event_xxx",
"type": "response.output_item.added",
"response_id": "resp_xxx",
"output_index": 0,
"item": {
"id": "item_xxx",
"object": "realtime.item",
"type": "message",
"status": "in_progress",
"role": "assistant",
"content": []
}
}
Function Call 输出项示例:
当输出项为函数调用时,response.output_item.added / conversation.item.created / response.output_item.done 中的 item 结构如下:
{
"id": "item_xxx",
"object": "realtime.item",
"type": "function_call",
"status": "completed",
"call_id": "call_xxx",
"name": "get_weather",
"arguments": "{\"city\":\"杭州\"}"
}
一轮响应可包含多个 function_call,也可能同时包含普通 message 输出和 function_call 输出。Function Call 部分不会送入 TTS 播报。
response.content_part.added
输出项中新增一个内容部分。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.content_part.added。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| part | object | 新增的内容部分。 |
| part.type | string | 内容类型,如 audio、text。 |
| part.text | string | 文本内容,初始为空字符串。 |
{
"event_id": "event_xxx",
"type": "response.content_part.added",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"part": {
"type": "audio",
"text": ""
}
}
response.text.delta
纯文本模式下的文本增量事件,流式返回文本片段。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.text.delta。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| delta | string | 文本增量片段。 |
{
"event_id": "event_xxx",
"type": "response.text.delta",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"delta": "你好"
}
response.text.done
纯文本模式下的文本输出完成事件。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.text.done。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| text | string | 完整的文本输出。 |
{
"event_id": "event_xxx",
"type": "response.text.done",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"text": "你好,有什么可以帮助你的吗?"
}
response.audio_transcript.delta
音频模式下的文字字幕增量事件,流式返回字幕片段。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.audio_transcript.delta。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| delta | string | 字幕增量片段。 |
{
"event_id": "event_xxx",
"type": "response.audio_transcript.delta",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"delta": "你好"
}
response.audio_transcript.done
音频模式下的字幕输出完成事件。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.audio_transcript.done。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| transcript | string | 完整的字幕文本。 |
{
"event_id": "event_xxx",
"type": "response.audio_transcript.done",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"transcript": "你好,有什么可以帮助你的吗?"
}
response.audio.delta
音频模式下的音频数据增量事件。delta 字段为 Base64 编码的 PCM 音频数据。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.audio.delta。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| delta | string | Base64 编码的 PCM 音频数据片段。 |
{
"event_id": "event_xxx",
"type": "response.audio.delta",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"delta": "<base64 编码的音频数据>"
}
response.audio.done
音频模式下的音频输出完成事件,不包含音频数据。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.audio.done。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
{
"event_id": "event_xxx",
"type": "response.audio.done",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0
}
response.content_part.done
输出项中的内容部分输出完成。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.content_part.done。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| content_index | integer | 内容部分在输出项中的索引。 |
| part | object | 完成的内容部分。 |
| part.type | string | 内容类型,如 audio、text。 |
| part.text | string | 文本内容或音频字幕文本。 |
{
"event_id": "event_xxx",
"type": "response.content_part.done",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"content_index": 0,
"part": {
"type": "audio",
"text": "你好,有什么可以帮助你的吗?"
}
}
response.output_item.done
响应中的输出项输出完成。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.output_item.done。 |
| response_id | string | 关联的响应 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| item | object | 完成的输出项完整信息。 |
| item.id | string | 输出项的唯一标识符。 |
| item.object | string | 固定为 realtime.item。 |
| item.type | string | 输出项类型:message(普通消息)或 function_call(函数调用)。 |
| item.status | string | 输出项状态,如 completed。 |
| item.role | string | 消息角色,固定为 assistant。仅 message 类型包含。 |
| item.content | array | 消息内容列表。仅 message 类型包含。 |
{
"event_id": "event_xxx",
"type": "response.output_item.done",
"response_id": "resp_xxx",
"output_index": 0,
"item": {
"id": "item_xxx",
"object": "realtime.item",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "text",
"text": "你好,有什么可以帮助你的吗?"
}
]
}
}
response.function_call_arguments.delta
Function Calling 参数增量。模型决定调用工具时,服务端会先发送 response.output_item.added(item.type=function_call)和对应的 conversation.item.created,随后通过本事件流式输出参数片段。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.function_call_arguments.delta。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| call_id | string | 函数调用的唯一标识符。 |
| delta | string | 函数调用参数的增量片段(JSON 字符串片段)。 |
{
"event_id": "event_xxx",
"type": "response.function_call_arguments.delta",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"call_id": "call_xxx",
"delta": "{\"city"
}
response.function_call_arguments.done
Function Calling 参数输出完成。收到该事件后,客户端应执行对应工具,并通过 conversation.item.create 写入 function_call_output,随后发送 response.create 触发二轮推理。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.function_call_arguments.done。 |
| response_id | string | 关联的响应 ID。 |
| item_id | string | 关联的输出项 ID。 |
| output_index | integer | 输出项在响应中的索引。 |
| call_id | string | 函数调用的唯一标识符。 |
| name | string | 调用的函数名称。 |
| arguments | string | 完整的函数调用参数(JSON 字符串)。 |
{
"event_id": "event_xxx",
"type": "response.function_call_arguments.done",
"response_id": "resp_xxx",
"item_id": "item_xxx",
"output_index": 0,
"call_id": "call_xxx",
"name": "get_weather",
"arguments": "{\"city\":\"杭州\"}"
}
response.done
一轮推理完成。status 表示结束原因。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 response.done。 |
| response | object | 完整的响应对象。 |
| response.id | string | 响应的唯一标识符。 |
| response.object | string | 固定为 realtime.response。 |
| response.status | string | 响应的结束状态:completed(正常完成)、cancelled(被打断取消)、failed(LLM 或 TTS 错误)。 |
| response.status_details | object | 状态详情,仅在 cancelled 或 failed 时存在。 |
| response.status_details.type | string | 状态类型,如 cancelled。 |
| response.status_details.reason | string | 取消原因:turn_detected(VAD 打断)或 client_cancelled(客户端取消)。 |
| response.modalities | array | 模型输出模态设置。 |
| response.voice | string | 模型生成音频的音色,为系统音色名称或声音复刻音色的 voice_id。 |
| response.output | array | 响应的输出项列表,包含完整的 item 对象。 |
{
"event_id": "event_xxx",
"type": "response.done",
"response": {
"id": "resp_xxx",
"object": "realtime.response",
"status": "completed",
"modalities": ["text", "audio"],
"voice": "longanqian",
"output": [
{
"id": "item_xxx",
"object": "realtime.item",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "audio",
"transcript": "你好,有什么可以帮助你的吗?"
}
]
}
]
}
}
{
"event_id": "event_xxx",
"type": "response.done",
"response": {
"id": "resp_xxx",
"status": "cancelled",
"status_details": {
"type": "cancelled",
"reason": "turn_detected"
}
}
}
voiceprint_audio_list.in_progress
声纹注册流程异步进行中。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 voiceprint_audio_list.in_progress。 |
| item_id | string | 声纹注册任务的唯一标识符。 |
{
"event_id": "event_PaEcN7CCrlhE8q4MM2yND",
"type": "voiceprint_audio_list.in_progress",
"item_id": "vp_Y12cA986j1KZ9O9YmAXOA"
}
voiceprint_audio_list.completed
声纹注册流程已完成。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 voiceprint_audio_list.completed。 |
| item_id | string | 声纹注册任务的唯一标识符。 |
{
"event_id": "event_PaEcN7CCrlhE8q4MM2yND",
"type": "voiceprint_audio_list.completed",
"item_id": "vp_Y12cA986j1KZ9O9YmAXOA"
}
voiceprint_audio_list.failed
声纹注册失败,不阻塞正常对话调用。
| 字段 | 类型 | 描述 |
|---|
| event_id | string | 本次事件唯一标识符。 |
| type | string | 事件类型,固定为 voiceprint_audio_list.failed。 |
| item_id | string | 声纹注册任务的唯一标识符。 |
| reason | string | 失败原因描述。 |
{
"event_id": "event_PaEcN7CCrlhE8q4MM2yND",
"type": "voiceprint_audio_list.failed",
"item_id": "vp_Y12cA986j1KZ9O9YmAXOA",
"reason": ""
}