AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug][2026-03-29 19:26:13.423]Minimax tts,模型speech-02-turbo,报错 👉处理语音时出错: file does not start with RIFF id

Open JackZhaoooooo opened this issue 8 months ago • 1 comments

What happened / 发生了什么

开启启用文本转语音,模型选择minimax tts,聊天后报错处理语音时出错: file does not start with RIFF id

Reproduce / 如何复现?

开启启用文本转语音,模型选择minimax tts,聊天后报错处理语音时出错: file does not start with RIFF id

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

linux 4.22.2、minimax tts、qq机器人

OS

Linux

Logs / 报错日志

[2026-03-29 19:26:13.423] [Core] [ERRO] [v4.22.2] [qqofficial.qqofficial_message_event:622]: 处理语音时出错: file does not start with RIFF id

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

  • [ ] Yes!

Code of Conduct

JackZhaoooooo avatar Mar 29 '26 11:03 JackZhaoooooo

这是一个已知问题 [1]。

原因:Minimax TTS 输出的是 MP3 格式,但 QQ 官方机器人适配器需要 WAV 格式才能转换为腾讯 Silk 格式上传。代码使用 wave.open() 读取文件时会验证 RIFF 头(WAV 格式标识),非 WAV 文件会触发此错误。

临时解决方案:

  • 社区有 MP3 到 WAV 自动转换的分支:https://github.com/zhx8702/AstrBot/tree/feat-wechat-tts-mp3towav
  • 需要安装 ffmpeg 依赖

To reply, just mention @dosu.


Share context across your team and agents. Try Dosu.

Leave Feedback Learn about AstrBot with Dosu Add Dosu to your team

dosubot[bot] avatar Mar 29 '26 11:03 dosubot[bot]