-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Feature]STT:ffmpeg 未安装时降级处理 #8651
Copy link
Copy link
Open
Labels
area:coreThe bug / feature is about astrbot's core, backendThe bug / feature is about astrbot's core, backendenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
area:coreThe bug / feature is about astrbot's core, backendThe bug / feature is about astrbot's core, backendenhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description / 描述
ffmpeg 未安装时,AstrBot 会打印警告但仍将原始 amr 文件直接送给 STT API,导致 API 返回 400 Bad Request(不支持 amr 格式)。建议在 ffmpeg 转码失败时直接终止 STT 流程,不再继续调用 API。
Use Case / 使用场景
用户在 QQ 群发送语音消息,bot 配置了 STT 但服务器未安装 ffmpeg。目前日志会出现api的 400 报错,但ffmpeg只有黄色错误。
Willing to Submit PR? / 是否愿意提交PR?
Code of Conduct