Skip to content

[Bug]在 v4.19.2 版本中,使用官方飞书适配器发送语音消息时,AstrBot 后台不会调用 ffmpeg 转换格式,导致语音无法正常处理。而 OneBot 渠道的语音消息转换正常。 #5971

@VesperCrystal

Description

@VesperCrystal

What happened / 发生了什么

预期行为

飞书适配器收到语音消息后,应该像 OneBot 适配器一样调用 ffmpeg 将 amr 格式转换为 pcm/wav 格式。

实际行为

飞书适配器收到语音消息后,仅记录收到 ``,但没有后续的格式转换日志。

日志对比

飞书渠道日志(无转换):

   : Prepare to send - ou_fc596/ou_fc596a20ae5d63a44799b761fc161360: 
   :   ou_fc596/ou_fc596a20ae5d63a44799b761fc161360: 

OneBot 渠道日志(正常转换):

   :   Accelerator/755126722: 
   : Converting amr file to wav using convert_to_pcm_wav...
   :  stdout:
   :  return code: 0

环境信息

  • AstrBot 版本:v4.19.2
  • 适配器:飞书官方适配器
  • 对比适配器:OneBot

可能的原因

飞书适配器的消息处理流程中可能缺少对语音消息的格式转换调用,或者转换逻辑与 OneBot 适配器不一致。


### Reproduce / 如何复现?

1. 配置飞书适配器
2. 通过飞书发送语音消息到 AstrBot
3. 观察后台日志,发现没有 ffmpeg 转换过程

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

## 环境信息

- AstrBot 版本:v4.19.2
- 适配器:飞书官方适配器
- 对比适配器:OneBot 


### OS

macOS

### Logs / 报错日志

飞书日志:[2026-03-10 11:48:01.480] [Core] [INFO] [respond.stage:184]: Prepare to send - ou_fc596/ou_fc596a20ae5d63a44799b761fc161360: 
[2026-03-10 11:53:12.531] [Core] [INFO] [core.event_bus:61]: [飞书] [lark(lark)] ou_fc596/ou_fc596a20ae5d63a44799b761fc161360: [ComponentType.Record] 

 aiocqhttp渠道日志:[2026-03-09 22:36:41.738] [Core] [INFO] [core.event_bus:61]: [default] [default(aiocqhttp)] Accelerator/755126722: [ComponentType.Record]

[2026-03-09 22:36:41.956] [Core] [INFO] [sources.whisper_api_source:96]: Converting amr file to wav using convert_to_pcm_wav...

[2026-03-09 22:36:42.215] [Core] [INFO] [utils.tencent_record_helper:96]: [FFmpeg] stdout:

[2026-03-09 22:36:42.216] [Core] [INFO] [utils.tencent_record_helper:98]: [FFmpeg] return code: 0

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

- [x] 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:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions