Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/tts_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ def text_to_speech_tool(
# and needs ffmpeg for conversion.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a Feishu regression in tests/tools/test_tts_opus_routing.py. The current test covers only Telegram; exercise this new branch with HERMES_SESSION_PLATFORM="feishu" and assert .ogg conversion plus the voice directive.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lark is not emitted by the current adapter: Feishu/Lark constructs Platform.FEISHU, and the gateway exports its value as feishu. The feishu case already covers Lark-domain deployments; retaining an unreachable alias makes the routing contract misleading.

from gateway.session_context import get_session_env
platform = get_session_env("HERMES_SESSION_PLATFORM", "").lower()
want_opus = (platform == "telegram")
want_opus = (platform in {"telegram", "feishu", "lark"})

# Determine output path
if output_path:
Expand Down