feat(gateway): echo voice-message transcripts back to the user - #13727
Closed
briancaffey wants to merge 1 commit into
Closed
feat(gateway): echo voice-message transcripts back to the user#13727briancaffey wants to merge 1 commit into
briancaffey wants to merge 1 commit into
Conversation
Adds an opt-in gateway behavior that sends the transcript of an incoming voice message as its own chat message before the agent replies, with an optional header prefix. Useful for verifying STT accuracy on technical terms, names, and instructions. Config (stt block in ~/.hermes/config.yaml): - send_transcription (bool, default false) — enable the echo - send_transcription_header (string, default "") — optional prefix Toggled at runtime via a new gateway slash command: /stt → show STT status /stt echo → toggle echo on/off /stt echo on|off → set explicitly /stt echo status → show just the echo state The /stt handler updates self.config in memory AND persists the change to config.yaml via atomic_yaml_write, matching the /verbose pattern so restarts keep the new value. Echo send failures are swallowed with a warning — the agent still replies normally with the transcript in context.
This was referenced May 8, 2026
This was referenced Jun 28, 2026
Contributor
|
The core of this PR is now implemented on main: voice-message transcripts are echoed back to the user (🎙️ format) at every gateway path, and as of PR #58859 the echo is configurable via The one piece that didn't land is the |
Author
|
Awesome, thank you @teknium1 for letting me know! |
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
Opt-in gateway behavior that echoes the transcript of an incoming voice message back to the user as its own chat message before the agent replies. Useful for verifying STT accuracy on technical terms, names, and instructions on messaging platforms (Telegram, Discord, Slack, etc.).
The echo is off by default and controlled by two new keys under
stt:inconfig.yaml:send_transcription(bool, defaultfalse) — enable/disable the echosend_transcription_header(string, default"") — optional prefix, e.g."🎤 **Voice Transcription**\n\n"A new gateway slash command toggles the echo at runtime and persists the change to
config.yaml(same pattern as/verbose):/sttor/stt status— show current STT state/stt echo— toggle on/off/stt echo on|off— set explicitly/stt echo status— show just the echo stateEcho send failures are swallowed with a warning; the agent still replies normally with the transcript in context.
Test plan
pytest tests/gateway/test_stt_command.py tests/gateway/test_stt_config.py -v— 31 tests covering config load, the echo path in_enrich_message_with_transcription, every form of/stt, toggle/status/unknown-subcommand paths, and that siblingstt.*keys are preserved on savestt.send_transcription: truein~/.hermes/config.yaml, send a voice message via Telegram — confirm transcript echoes before the agent replies/sttto view status,/stt echo offto disable, verifyconfig.yamlshowsstt.send_transcription: false, send another voice message and confirm no echoFiles touched
gateway/config.py— two newGatewayConfigfields loaded from the nestedstt:blockgateway/run.py— echo in_enrich_message_with_transcription, new_echo_transcriptionhelper, new_handle_stt_command+ dispatch casehermes_cli/commands.py—/sttregistered inCOMMAND_REGISTRYcli-config.yaml.example,website/docs/user-guide/configuration.md— docs + example configtests/gateway/test_stt_command.py,tests/gateway/test_stt_config.py— test coverage🤖 Generated with Claude Code