# Qwen Audio 3.1 ASR Flash 语音识别

> 音频生成

提交音频进行语音识别。默认返回 JSON（含识别文本、句级与字级时间轴、Token 用量）；当 `stream` 为 `true` 时返回 `text/event-stream`，按句逐个推送识别结果。

`model`、`metadata.format` 以及音频来源（`url` / `audio_url` / `audio_data` 之一）为必填，其余为可选。

## 最小调用示例

非流式，一次返回完整识别结果：

```bash
curl -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \
  -H "Authorization: Bearer ${MODELVERSE_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen-audio-3.1-asr-flash",
    "url": "https://example.com/audio.mp3",
    "metadata": {"format": "mp3"}
  }'
```

流式：请求体加 `"stream": true`，curl 加 `-N` 关闭输出缓冲，响应为 `text/event-stream`：

```bash
curl -N -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \
  -H "Authorization: Bearer ${MODELVERSE_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen-audio-3.1-asr-flash",
    "url": "https://example.com/audio.mp3",
    "stream": true,
    "metadata": {"format": "mp3"}
  }'
```

识别文本读取 `output.text`。流式时逐个解析 `data:` 中的 JSON，最后一个事件的 `usage` 为完整 Token 用量。

## 请求地址

`POST https://api.modelverse.cn/v1/audio/transcriptions`

## 请求体

## 响应

- **200** — 识别成功。非流式返回 JSON；`stream=true` 时返回 `text/event-stream`。

- **400** — 请求参数无效：音频来源缺失、`metadata.format` 缺失、Data URI 格式错误、热词权重越界，或请求参数未通过校验。以上情况均不会产生用量记录。

- **401** — 鉴权失败，API Key 缺失或无效。
- **default** — 其他错误响应。

## OpenAPI 定义

```json
{
  "openapi": "3.1.0",
  "x-language": "zh-CN",
  "info": {
    "title": "Qwen Audio 3.1 ASR Flash 语音识别",
    "version": "1.0.0",
    "description": "这是 ModelVerse 上 `qwen-audio-3.1-asr-flash` 的语音识别接口文档，说明如何提交音频、获取识别结果、开启 SSE 流式输出以及处理错误。\n\n接口路径为 `POST /v1/audio/transcriptions`。\n\n## 模型特性\n\n- 非实时语音识别，单次提交完整音频，支持非流式（一次返回完整识别结果）和 SSE 流式（逐句返回识别结果）两种输出方式。\n- 支持中文普通话、多语种与方言，可通过 `language` 指定语种，通过 `metadata.keep_dialect` 保留方言表达。\n- 支持上下文增强（`prompt`）与即时热词（`metadata.vocabulary`），提升专有名词、人名、品牌名的识别准确率。\n- 支持说话人分离（`metadata.speaker_diarization_enabled`），开启后返回 `speaker_id` 与按句切分的 `sentences`。\n- 返回结果包含句级时间轴与字级时间戳（`sentence.words`）。\n\n## 使用注意\n\n- **仅支持 JSON 请求**：`Content-Type` 必须为 `application/json`，音频通过 `url`、`audio_url` 或 `audio_data` 传入。\n- `url` / `audio_url` 必须是公网可直接访问的音频地址；`audio_data` 必须是 `data:{MIME};base64,{DATA}` 形式的 Data URI。\n- `metadata.format` 必填，需与音频实际编码一致，格式不符会导致识别失败或返回空文本。\n- 识别文本以 `output.text` 为准。\n- 开启说话人分离后，`language` 与 `metadata.keep_dialect` 不生效。\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "中国大陆"
    },
    {
      "url": "https://api.umodelverse.ai",
      "description": "海外"
    },
    {
      "url": "https://api-us-ca.umodelverse.ai",
      "description": "美国洛杉矶"
    },
    {
      "url": "https://api-sg.umodelverse.ai",
      "description": "新加坡"
    },
    {
      "url": "https://api-ge-fra.umodelverse.ai",
      "description": "法兰克福"
    }
  ],
  "tags": [
    {
      "name": "Qwen ASR",
      "description": "`qwen-audio-3.1-asr-flash` 的语音识别接口。"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/audio/transcriptions": {
      "post": {
        "tags": [
          "Qwen ASR"
        ],
        "operationId": "createQwenAudio31ASRFlashTranscription",
        "summary": "Qwen Audio 3.1 ASR Flash 语音识别",
        "description": "提交音频进行语音识别。默认返回 JSON（含识别文本、句级与字级时间轴、Token 用量）；当 `stream` 为 `true` 时返回 `text/event-stream`，按句逐个推送识别结果。\n\n`model`、`metadata.format` 以及音频来源（`url` / `audio_url` / `audio_data` 之一）为必填，其余为可选。\n\n## 最小调用示例\n\n非流式，一次返回完整识别结果：\n\n```bash\ncurl -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \\\n  -H \"Authorization: Bearer ${MODELVERSE_API_KEY}\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"model\": \"qwen-audio-3.1-asr-flash\",\n    \"url\": \"https://example.com/audio.mp3\",\n    \"metadata\": {\"format\": \"mp3\"}\n  }'\n```\n\n流式：请求体加 `\"stream\": true`，curl 加 `-N` 关闭输出缓冲，响应为 `text/event-stream`：\n\n```bash\ncurl -N -X POST 'https://api.modelverse.cn/v1/audio/transcriptions' \\\n  -H \"Authorization: Bearer ${MODELVERSE_API_KEY}\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"model\": \"qwen-audio-3.1-asr-flash\",\n    \"url\": \"https://example.com/audio.mp3\",\n    \"stream\": true,\n    \"metadata\": {\"format\": \"mp3\"}\n  }'\n```\n\n识别文本读取 `output.text`。流式时逐个解析 `data:` 中的 JSON，最后一个事件的 `usage` 为完整 Token 用量。\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QwenAudioASRFlashRequest"
              },
              "examples": {
                "url": {
                  "summary": "公网 URL 识别",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "language": "zh",
                    "metadata": {
                      "format": "mp3"
                    }
                  }
                },
                "base64": {
                  "summary": "Base64 Data URI 识别",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "audio_data": "data:audio/wav;base64,UklGRiQAAABXQVZF...",
                    "metadata": {
                      "format": "wav",
                      "sample_rate": "16000"
                    }
                  }
                },
                "withContext": {
                  "summary": "上下文增强 + 即时热词",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "prompt": "武汉 户部巷 热干面 江汉关",
                    "metadata": {
                      "format": "mp3",
                      "vocabulary": {
                        "户部巷": 5,
                        "江汉关": 5
                      }
                    }
                  }
                },
                "diarization": {
                  "summary": "说话人分离",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "metadata": {
                      "format": "mp3",
                      "speaker_diarization_enabled": true
                    }
                  }
                },
                "stream": {
                  "summary": "SSE 流式识别",
                  "value": {
                    "model": "qwen-audio-3.1-asr-flash",
                    "url": "https://example.com/audio.mp3",
                    "stream": true,
                    "metadata": {
                      "format": "mp3"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "识别成功。非流式返回 JSON；`stream=true` 时返回 `text/event-stream`。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRFlashResponse"
                },
                "examples": {
                  "transcription": {
                    "summary": "非流式识别结果",
                    "value": {
                      "output": {
                        "output": {
                          "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5",
                          "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                          "sentence": {
                            "begin_time": 2040,
                            "end_time": 21640,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 1,
                            "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                            "words": [
                              {
                                "begin_time": 2040,
                                "end_time": 2800,
                                "fixed": true,
                                "punctuation": "，",
                                "text": "早安"
                              },
                              {
                                "begin_time": 2800,
                                "end_time": 4080,
                                "fixed": true,
                                "punctuation": "！",
                                "text": "武汉"
                              }
                            ]
                          }
                        },
                        "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5",
                        "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                        "sentence": {
                          "begin_time": 2040,
                          "end_time": 21640,
                          "channel_id": 0,
                          "sentence_end": true,
                          "sentence_id": 1,
                          "text": "早安，武汉！早晨的户部巷，热干面的香气扑面而来。",
                          "words": [
                            {
                              "begin_time": 2040,
                              "end_time": 2800,
                              "fixed": true,
                              "punctuation": "，",
                              "text": "早安"
                            },
                            {
                              "begin_time": 2800,
                              "end_time": 4080,
                              "fixed": true,
                              "punctuation": "！",
                              "text": "武汉"
                            }
                          ]
                        },
                        "usage": {
                          "duration": 22,
                          "input_tokens": 271,
                          "output_tokens": 40,
                          "total_tokens": 311
                        }
                      },
                      "usage": {
                        "duration": 22,
                        "input_tokens": 271,
                        "output_tokens": 40,
                        "total_tokens": 311
                      },
                      "request_id": "fc17198f-ea3c-9bca-bd52-f4ec682ce4e5"
                    }
                  },
                  "diarization": {
                    "summary": "说话人分离识别结果（节选）",
                    "value": {
                      "output": {
                        "text": "早安，武汉。早晨的户部巷，热干面的香气扑面而来。",
                        "sentences": [
                          {
                            "begin_time": 1840,
                            "end_time": 3360,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 1,
                            "speaker_id": 0,
                            "text": "早安，武汉。",
                            "words": [
                              {
                                "begin_time": 1840,
                                "end_time": 2600,
                                "fixed": true,
                                "punctuation": "，",
                                "speaker_id": 0,
                                "text": "早安"
                              },
                              {
                                "begin_time": 2600,
                                "end_time": 3360,
                                "fixed": true,
                                "punctuation": "。",
                                "speaker_id": 0,
                                "text": "武汉"
                              }
                            ]
                          },
                          {
                            "begin_time": 4000,
                            "end_time": 10880,
                            "channel_id": 0,
                            "sentence_end": true,
                            "sentence_id": 2,
                            "speaker_id": 1,
                            "text": "早晨的户部巷，热干面的香气扑面而来。"
                          }
                        ]
                      },
                      "usage": {
                        "duration": 21,
                        "input_tokens": 271,
                        "output_tokens": 88,
                        "total_tokens": 359
                      },
                      "request_id": "535272d4-9b55-980b-87c0-bf8241a5b234"
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "SSE 事件流。每个事件由 `id:`、`event:result`、`:HTTP_STATUS/200`、`data:<JSON>` 与一个空行组成。\n\n`data` 中的 JSON 结构与非流式响应相同，`output.text` 随事件递增为当前已识别到的文本；`usage` 在事件中携带当前累计用量。\n"
                },
                "examples": {
                  "streamEvents": {
                    "summary": "流式事件示例（节选）",
                    "value": "id:1\nevent:result\n:HTTP_STATUS/200\ndata:{\"output\":{\"output\":{\"sentence\":{\"sentence_id\":1,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":4080,\"channel_id\":0,\"text\":\"早安，武汉。\",\"words\":[{\"begin_time\":2040,\"end_time\":2800,\"fixed\":true,\"punctuation\":\"，\",\"text\":\"早安\"},{\"begin_time\":2800,\"end_time\":4080,\"fixed\":true,\"punctuation\":\"。\",\"text\":\"武汉\"}]},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"text\":\"早安，武汉。\"},\"sentence\":{\"sentence_id\":1,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":4080,\"channel_id\":0,\"text\":\"早安，武汉。\",\"words\":[]},\"text\":\"早安，武汉。\",\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"usage\":{\"duration\":4,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311}},\"usage\":{\"duration\":4,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\"}\n\nid:2\nevent:result\n:HTTP_STATUS/200\ndata:{\"output\":{\"output\":{\"sentence\":{\"sentence_id\":2,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":11560,\"channel_id\":0,\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"words\":[]},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\"},\"sentence\":{\"sentence_id\":2,\"sentence_end\":true,\"begin_time\":2040,\"end_time\":11560,\"channel_id\":0,\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"words\":[]},\"text\":\"早安，武汉。早晨的户部巷，热干面的香气扑面而来，这是最地道的过早文化。\",\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\",\"usage\":{\"duration\":12,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311}},\"usage\":{\"duration\":12,\"input_tokens\":271,\"output_tokens\":40,\"total_tokens\":311},\"request_id\":\"6256bf69-04a8-9769-9701-85e64b402c61\"}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "请求参数无效：音频来源缺失、`metadata.format` 缺失、Data URI 格式错误、热词权重越界，或请求参数未通过校验。以上情况均不会产生用量记录。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                },
                "examples": {
                  "invalidWeight": {
                    "summary": "热词权重越界",
                    "value": {
                      "error": {
                        "message": "[trace_id: 4cd441f2-a93f-4b19-b29f-fe1ec56ee680] Invalid param: metadata.vocabulary[\"张三\"] weight must be in [1,5] or 50",
                        "type": "invalid_request_error",
                        "param": null,
                        "code": "param_error",
                        "trace_id": "4cd441f2-a93f-4b19-b29f-fe1ec56ee680"
                      }
                    }
                  },
                  "invalidParam": {
                    "summary": "请求参数非法",
                    "value": {
                      "error": {
                        "message": "[trace_id: 2504295d-ccfd-4704-bf6c-f9162e2a9280] Invalid param: invalid audio_transcriptions request parameters",
                        "type": "invalid_request_error",
                        "param": null,
                        "code": "param_error",
                        "trace_id": "2504295d-ccfd-4704-bf6c-f9162e2a9280"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败，API Key 缺失或无效。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                }
              }
            }
          },
          "default": {
            "description": "其他错误响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QwenAudioASRErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "使用 Bearer Token 鉴权，格式为 `Authorization: Bearer <API Key>`。"
      }
    },
    "schemas": {
      "QwenAudioASRFlashRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "metadata"
        ],
        "properties": {
          "model": {
            "type": "string",
            "const": "qwen-audio-3.1-asr-flash",
            "description": "模型名称，固定为 `qwen-audio-3.1-asr-flash`。"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "音频的公网可访问 URL，支持 `http` / `https`。\n与 `audio_url`、`audio_data` 同时传入时优先级最高。\n"
          },
          "audio_url": {
            "type": "string",
            "format": "uri",
            "description": "音频公网 URL 的别名，行为与 `url` 一致，用于兼容既有调用方。\n优先级低于 `url`，高于 `audio_data`。\n"
          },
          "audio_data": {
            "type": "string",
            "description": "Base64 Data URI 形式的音频，格式必须为 `data:{MIME_TYPE};base64,{BASE64_DATA}`。\n优先级最低。\n`{MIME_TYPE}` 需与音频实际编码一致，并与 `metadata.format` 对应。例如 WAV 音频使用 `data:audio/wav;base64,...`，同时 `metadata.format` 填 `wav`。\n",
            "examples": [
              "data:audio/wav;base64,UklGRiQAAABXQVZF..."
            ]
          },
          "language": {
            "type": "string",
            "description": "音频语种提示，如 `zh`、`en`、`ja`。\n显式指定可提升识别准确率；不传则由模型自动判断。\n开启说话人分离时该字段不生效。\n\n常用语种代码：`zh` 中文、`en` 英文、`ja` 日语、`ko` 韩语、`fr` 法语、`de` 德语、\n`es` 西班牙语、`pt` 葡萄牙语、`ru` 俄语、`it` 意大利语、`ar` 阿拉伯语、\n`th` 泰语、`vi` 越南语、`id` 印尼语、`ms` 马来语、`nl` 荷兰语。\n",
            "examples": [
              "zh",
              "en"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "上下文增强文本，用于提供领域词汇、专有名词或前文内容，提升识别准确率。\n传入单段文本即可，建议控制在 400 字符以内，超出部分会被截断。\n",
            "examples": [
              "武汉 户部巷 热干面 江汉关"
            ]
          },
          "stream": {
            "type": "boolean",
            "default": false,
            "description": "是否以 SSE 流式返回识别结果。为 `true` 时响应类型为 `text/event-stream`。\n"
          },
          "metadata": {
            "$ref": "#/components/schemas/QwenAudioASRFlashMetadata"
          }
        }
      },
      "QwenAudioASRFlashMetadata": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "format"
        ],
        "properties": {
          "format": {
            "type": "string",
            "description": "音频编码格式，**必填**，如 `wav`、`mp3`、`opus`、`pcm`、`aac`、`amr`。\n需与音频实际编码一致，不一致可能导致识别失败或返回空文本。\n",
            "examples": [
              "wav",
              "mp3"
            ]
          },
          "sample_rate": {
            "type": "string",
            "description": "音频采样率（Hz），以字符串传入，如 `\"16000\"`。\n建议与音频实际采样率一致。\n",
            "examples": [
              "16000"
            ]
          },
          "vocabulary": {
            "type": "object",
            "description": "即时热词。以键值对形式传入，键为热词文本（`string`），值为热词权重（`integer`），无需预先创建热词列表。\n\n- 权重取值 `[1, 5]` 时值越大，模型越倾向输出该词。\n- 权重 `50` 为超级热词，召回率大幅提升，超级热词最多 50 个。\n- 键不能为空字符串。\n",
            "examples": [
              {
                "户部巷": 5,
                "江汉关": 5
              }
            ]
          },
          "speaker_diarization_enabled": {
            "type": "boolean",
            "default": false,
            "description": "是否开启说话人分离。开启后响应包含 `sentences` 数组与 `words[].speaker_id`，按说话人切分。\n\n开启时 `language` 与 `keep_dialect` 不生效。\n"
          },
          "keep_dialect": {
            "type": "boolean",
            "default": false,
            "description": "是否保留方言表达。为 `true` 时识别结果尽量保留方言用词，不做普通话归一化。\n开启说话人分离时该字段不生效。\n"
          }
        },
        "description": "扩展参数对象。通用参数（`model`、`language`、`prompt`、`stream`）放在顶层，模型专有参数放在 `metadata` 中。\n"
      },
      "QwenAudioASRFlashResponse": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "output",
          "request_id"
        ],
        "properties": {
          "output": {
            "$ref": "#/components/schemas/QwenAudioASROutput"
          },
          "usage": {
            "$ref": "#/components/schemas/QwenAudioASRUsage"
          },
          "request_id": {
            "type": "string",
            "description": "本次请求的唯一标识，用于排查问题。"
          }
        }
      },
      "QwenAudioASROutput": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "output": {
            "type": "object",
            "additionalProperties": true,
            "description": "嵌套的识别结果，内容与父级 `output` 一致（`request_id`、`text`、`sentence`、`sentences`、`usage`）。\n请以父级 `output.text` 为准。\n"
          },
          "request_id": {
            "type": "string",
            "description": "请求 ID。"
          },
          "text": {
            "type": "string",
            "description": "完整识别文本。流式响应中为当前已识别到的文本，随事件递增。"
          },
          "sentence": {
            "$ref": "#/components/schemas/QwenAudioASRSentence"
          },
          "sentences": {
            "type": "array",
            "description": "按句切分的识别结果。开启 `speaker_diarization_enabled` 时必定返回，每项带 `speaker_id`。\n",
            "items": {
              "$ref": "#/components/schemas/QwenAudioASRSentence"
            }
          },
          "usage": {
            "$ref": "#/components/schemas/QwenAudioASRUsage"
          }
        }
      },
      "QwenAudioASRSentence": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "sentence_id": {
            "type": "integer",
            "description": "句子序号，从 1 开始。"
          },
          "sentence_end": {
            "type": "boolean",
            "description": "该句是否已识别结束。"
          },
          "begin_time": {
            "type": "integer",
            "description": "句子起始时间（毫秒）。"
          },
          "end_time": {
            "type": "integer",
            "description": "句子结束时间（毫秒）。"
          },
          "channel_id": {
            "type": "integer",
            "description": "音频声道编号。"
          },
          "speaker_id": {
            "type": "integer",
            "description": "说话人编号，仅在开启说话人分离时返回。"
          },
          "text": {
            "type": "string",
            "description": "该句识别文本。"
          },
          "words": {
            "type": "array",
            "description": "字级时间戳数组。",
            "items": {
              "$ref": "#/components/schemas/QwenAudioASRWord"
            }
          }
        }
      },
      "QwenAudioASRWord": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "text": {
            "type": "string",
            "description": "字/词文本。"
          },
          "begin_time": {
            "type": "integer",
            "description": "起始时间（毫秒）。"
          },
          "end_time": {
            "type": "integer",
            "description": "结束时间（毫秒）。"
          },
          "punctuation": {
            "type": "string",
            "description": "该字词后紧跟的标点，无标点为空字符串。"
          },
          "fixed": {
            "type": "boolean",
            "description": "该字词结果是否已定型（不再被后续事件修正）。"
          },
          "speaker_id": {
            "type": "integer",
            "description": "说话人编号，仅在开启说话人分离时返回。"
          }
        }
      },
      "QwenAudioASRUsage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "input_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "输入 Token 数。"
          },
          "output_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "输出 Token 数。"
          },
          "total_tokens": {
            "type": "integer",
            "minimum": 0,
            "description": "输入与输出 Token 数之和。"
          },
          "duration": {
            "type": "integer",
            "minimum": 0,
            "description": "音频时长（秒）。\n流式事件中该值随已处理音频增长。\n"
          }
        }
      },
      "QwenAudioASRErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/QwenAudioASRError"
          }
        }
      },
      "QwenAudioASRError": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "message",
          "type",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "错误说明。前缀 `[trace_id: ...]` 与本响应的 `trace_id` 一致。"
          },
          "type": {
            "type": "string",
            "description": "错误类型。",
            "examples": [
              "invalid_request_error",
              "internal_error"
            ]
          },
          "code": {
            "type": "string",
            "description": "机器可读的错误码。",
            "examples": [
              "param_error",
              "model_server_error"
            ]
          },
          "param": {
            "type": [
              "string",
              "null"
            ],
            "description": "出错的参数字段，无对应参数时为 `null`。"
          },
          "trace_id": {
            "type": "string",
            "description": "本次请求的追踪 ID，用于反馈与排查。"
          }
        }
      }
    }
  }
}
```
