Skip to content

[Feature]STT:ffmpeg 未安装时降级处理 #8651

@lingyun14beta

Description

@lingyun14beta

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?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions