mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 16:29:34 +00:00
Voice/audio messages sent to Feishu (opus) play fine but show no duration
on the bubble. Feishu derives the voice-bubble duration from the `duration`
parameter of the file upload API (`im/v1/files`); the audio message content
only carries `{file_key}` and has no duration field, so the duration was
never set.
`sendMediaFeishu` now probes the outgoing audio with `ffprobe` and passes the
result as the upload `duration` (ms). It probes the buffer that is actually
sent (after the existing voice transcode, which caps length via
`MEDIA_FFMPEG_MAX_AUDIO_DURATION_SECS`), so the reported length matches what
is played. Probing is best-effort: on failure it logs and omits the duration,
and the message still sends. The audio message content is unchanged.
Fixes #53798
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
OpenClaw Feishu/Lark
Official OpenClaw channel plugin for Feishu and Lark workplace chats. Community maintained by @m1heng.
Install from OpenClaw:
openclaw plugin add @openclaw/feishu
Configure the Feishu/Lark app credentials in OpenClaw, then connect the plugin to the chats where agents should receive and send messages.