mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
Salvaged from PR #53157 (@LLQWQ). Three changes for native Feishu voice bubble delivery: 1. Include audio duration in the file-upload body when uploading opus files — Feishu renders 0:00 bubbles without it. Duration is extracted by parsing the OGG container's last granule position (pure Python, no ffprobe dependency). 2. Thread routing fallback: Feishu's create-message API rejects msg_type='audio' with receive_id_type='thread_id' (error 99992402); retry via the reply API against the thread's last message, then fall back to chat_id routing. 3. (dropped) tools/tts_tool.py want_opus hunk — superseded by main's OPUS_VOICE_PLATFORMS, which already includes feishu. The PR's stray scripts/release.py hunk was also dropped (frozen AUTHOR_MAP policy; mapping added under contributors/emails/ instead). Fixes #45557 Refs #18831 #16524 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adapter.py | ||
| feishu_comment.py | ||
| feishu_comment_rules.py | ||
| feishu_meeting_invite.py | ||
| plugin.yaml | ||