Skip to content

feat(stt): echo transcript to user after voice recording - #40810

Closed
freqyfreqy wants to merge 1 commit into
NousResearch:mainfrom
freqyfreqy:feat/stt-echo-transcript
Closed

feat(stt): echo transcript to user after voice recording#40810
freqyfreqy wants to merge 1 commit into
NousResearch:mainfrom
freqyfreqy:feat/stt-echo-transcript

Conversation

@freqyfreqy

Copy link
Copy Markdown
Contributor

What this does

When voice/STT recording completes, echo the transcribed text back to the user so they can verify what was captured before the agent processes it.

Why

Users need confirmation that the speech-to-text pipeline captured their intent correctly, especially with voice commands or dictation. Without echo, silent failures in ASR can cause the agent to act on garbled/incorrect input without the user realizing it.

Changes

  • Add transcript echo in the STT processing pipeline
  • Display recognized text to user before agent action

…tion

Add configurable stt.echo_transcript option (default: true) that sends
the transcribed text back to the user as a separate message after
processing a voice memo. This gives users a readable record of their
voice input in the chat history for future reference.

The feature is configurable via config.yaml:
  stt:
    echo_transcript: true  # default, set false to disable

Includes:
- GatewayConfig.stt_echo_transcript field with YAML round-trip support
- Backwards-compatible config loading (stt.echo_transcript or
  stt_echo_transcript top-level)
- Regex extraction that handles both voice message formats
- Guard against empty transcripts
@freqyfreqy

Copy link
Copy Markdown
Contributor Author

Another reason this is useful is because have a voice transcript in the chat helps searching in the session for humans to understand previous context.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery tool/tts Text-to-speech and transcription duplicate This issue or pull request already exists labels Jun 6, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #13727 (STT transcript echo), which is the canonical open implementation. See also #22123, #25196, #30544 — all implement the same voice-transcript echo feature. Consolidating on #13727.

@teknium1

teknium1 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Implemented on main: voice-message transcripts are echoed back to the user in the 🎙️ format at every gateway path, and as of PR #58859 the behavior is configurable via stt.echo_transcripts in config.yaml (default on). Closing as already implemented — thanks for the contribution!

@teknium1 teknium1 closed this Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have tool/tts Text-to-speech and transcription type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants