Skip to content

[Bug]dashscope_tts 使用 qwen3-tts-vc-realtime-2026-01-15 测试失败,报错 Invalid message type #6045

@baicai23333

Description

@baicai23333

What happened / 发生了什么

问题描述

在 AstrBot v4.11.4 中,使用 dashscope_tts 提供商接入阿里云百炼的声音复刻实时模型 qwen3-tts-vc-realtime-2026-01-15 时,点击“测试”会失败。

日志报错如下:

[20:37:48] [Core] [WARN] [v4.11.4] [routes.config:557]: Provider dashscope_tts (ID: dashscope_tts) is unavailable. Error: Audio synthesis failed for model 'qwen3-tts-vc-realtime-2026-01-15'. {"status_code": 400, "request_id": "60d100d4-eacb-414f-a18b-28e9f92ccf59", "code": "InvalidParameter", "message": "Invalid message type: ", "output": null, "usage": null}

从现象看,像是 AstrBot 当前的 dashscope_tts 请求格式与该 realtime VC 模型要求的协议不兼容,或者把该模型按普通 TTS 的方式调用了,导致上游返回 Invalid message type。
预期结果

可以正常完成语音合成,或者至少明确提示当前 dashscope_tts 暂不支持该 realtime VC 模型。

实际结果

点击测试后失败,后台日志提示:

Audio synthesis failed for model 'qwen3-tts-vc-realtime-2026-01-15'
code: InvalidParameter
message: Invalid message type:

同时 dashscope_tts provider 被标记为 unavailable。

补充说明

声音复刻本身看起来是成功的,百炼已经返回了有效的 voice id

问题出现在 AstrBot 调用该模型进行语音合成时

从报错信息判断,怀疑当前 dashscope_tts 尚未适配 qwen3-tts-vc-realtime-2026-01-15 这类 realtime 声音复刻模型,或者请求结构有问题

建议

希望确认以下几点:

当前 dashscope_tts 是否支持 qwen3-tts-vc-realtime-2026-01-15

如果暂不支持,建议在文档或界面中明确说明

如果属于兼容性问题,建议在后端增加更明确的报错提示,避免只返回上游的 Invalid message type


你发之前再补两点,会更有用:

第一,把 **API Key 一定打码**,你之前截图里已经露出来了,那个 key 直接作废重建。  
第二,最好再补一句:

```markdown
我暂时还没有验证普通非 realtime 的 DashScope TTS 模型是否可以正常使用。

### Reproduce / 如何复现?

在阿里云百炼中先完成声音复刻,拿到有效的 voice id

打开 AstrBot 后台

进入“模型提供商” -> “文字转语音”

配置 dashscope_tts

填入:

API Key

模型 ID:qwen3-tts-vc-realtime-2026-01-15

音色:声音复刻生成的 voice id

点击“测试”

### AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

AstrBot 版本:v4.11.4

提供商:dashscope_tts

模型 ID:qwen3-tts-vc-realtime-2026-01-15

音色 ID:qwen-tts-vc-hina_voice-voice-20260311151455696-0af1

部署环境:Ubuntu

### OS

Windows

### Logs / 报错日志

[20:37:48] [Core] [WARN] [v4.11.4] [routes.config:557]: Provider dashscope_tts (ID: dashscope_tts) is unavailable. Error: Audio synthesis failed for model 'qwen3-tts-vc-realtime-2026-01-15'. {"status_code": 400, "request_id": "60d100d4-eacb-414f-a18b-28e9f92ccf59", "code": "InvalidParameter", "message": "Invalid message type: ", "output": null, "usage": null}

### Are you willing to submit a PR? / 你愿意提交 PR 吗?

- [ ] Yes!

### Code of Conduct

- [x] I have read and agree to abide by the project's [Code of Conduct](https://docs.github.com/zh/site-policy/github-terms/github-community-code-of-conduct)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions