feat(gateway/stt): reply to voice messages with transcription text - #25679
Closed
Quarkex wants to merge 1 commit into
Closed
feat(gateway/stt): reply to voice messages with transcription text#25679Quarkex wants to merge 1 commit into
Quarkex wants to merge 1 commit into
Conversation
Collaborator
Quarkex
force-pushed
the
feat/stt-reply-transcript
branch
from
May 14, 2026 15:06
8e4321d to
ba3ce00
Compare
Add opt-in stt_reply_transcript config option (default: false).
When enabled, the gateway replies to voice messages with their
transcription as a quoted reply (🎤 «text»), making voice content
searchable and quotable in chat history.
Config:
stt:
reply_transcript: true # or stt_reply_transcript: true (flat)
Implementation:
- GatewayConfig: new field + from_dict/to_dict support
- _enrich_message_with_transcription: extended signature to accept
platform/chat_id/message_id/thread_id for reply delivery
- _send_reply_transcript: fire-and-forget helper that calls the
platform adapter's send_message with reply_to_message_id
The reply is never injected into the agent's transcript — it's purely
a UX convenience for users who want to search voice content later.
Quarkex
force-pushed
the
feat/stt-reply-transcript
branch
from
May 14, 2026 15:07
ba3ce00 to
fca5e64
Compare
Contributor
|
This is an automated hermes-sweeper review: the configurable STT transcript echo requested here is already implemented on current
The duplicate discussion linking #13727 was useful context; that PR's maintainer follow-up also confirms that transcript echo is now on main. Thanks for the contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an opt-in
stt_reply_transcriptconfig option that replies to voice messages with their transcription text, making voice content searchable and quotable in chat history.Motivation
Voice messages in messaging platforms are opaque — you can't search them, quote them, or skim them. When STT is already transcribing for the agent, surfacing that transcription as a visible reply costs nothing extra and significantly improves UX for users who rely heavily on voice input.
Configuration
Or flat:
stt_reply_transcript: trueImplementation
gateway/config.py: Newstt_reply_transcriptfield withfrom_dict/to_dictsupport (accepts both nestedstt.reply_transcriptand flat key)gateway/run.py:_enrich_message_with_transcriptionsignature to accept platform/chat_id/message_id/thread_id_send_reply_transcripthelper — fire-and-forget, calls the platform adapter'ssend_messagewithreply_to_message_idtests/gateway/test_stt_reply_transcript.py: Config parsing tests (5 cases)Design decisions
[The user sent a voice message~]envelopesend_message(reply_to_message_id=...)🎤 «transcribed text»— visually distinct, not confused with agent responsesTesting
test_stt_config.py: 5/5)