Qwen 语音识别 · 语音识别

Qwen 语音识别 · 介绍

Qwen 语音识别(ASR)统一走 qwen 网关,具体模型写在请求体 model 字段。把音频转写成文本,按输入音频秒数计费(0.022 积分/秒),输出不计费。 调用方只需传 audioUrl + duration(音频秒数);4 个模型均提交返回 taskId、按 taskId 轮询,区别仅在结果形态: • 录音文件识别:fun-asr / fun-asr-mtl(多语种)/ qwen3-asr-flash-filetrans —— succeeded 时 resultUrl 为转写结果文件地址(JSON,24h 有效,内含文本与句词级时间戳)。 • 快速识别:qwen3-asr-flash —— succeeded 时 resultUrl 直接是识别文本(无时间戳)。

怎么调用

  1. 提交:POST /api/cqt/generator/qwen,返回 taskId。
  2. 查询:GET /api/cqt/info/qwen?id=taskId,轮询到 status = succeeded。

能力地图

常见错误

错误码msg含义处理建议
400audioUrl required / Unsupported modelaudioUrl 为空,或 model 不在 4 个 ASR 模型白名单内传入有效音频 URL;model 用 fun-asr / fun-asr-mtl / qwen3-asr-flash / qwen3-asr-flash-filetrans
500failed / timeout上游识别失败或超时,积分已自动退回,详见 data.errorMsg检查音频可访问性/格式后重试

错误以 upstream bizCode 形式返回,例如:upstream bizCode=451, msg=prompt_unsafe。

提示:右上角 Authorize 保存 APIKey 后,每个能力页都能直接「在线运行」。