Skip to content

gateway: format voice transcript as πŸŽ™ γ€Œ...」 - #1

Merged
maiixu merged 2 commits into
mainfrom
claude/voice-transcript-format
Apr 12, 2026
Merged

gateway: format voice transcript as πŸŽ™ γ€Œ...」#1
maiixu merged 2 commits into
mainfrom
claude/voice-transcript-format

Conversation

@maiixu

@maiixu maiixu commented Apr 11, 2026

Copy link
Copy Markdown
Owner

What

Two patches on top of upstream:

1. stt: inject hotwords as initial_prompt (already committed)
Reads ~/.hermes/stt_hotwords.txt and passes terms as initial_prompt/prompt on every transcription call across all three providers (local faster-whisper, Groq, OpenAI). File is read fresh each call β€” no gateway restart needed.

2. gateway: format voice transcript as πŸŽ™ γ€Œ...」 (this PR)
Changes the voice message format injected into the LLM context from:

[The user sent a voice message~ Here's what they said: "..."]

to:

πŸŽ™ γ€Œ...」

Cleaner display in Telegram, saves ~10 context tokens per voice message, and removes the need for SOUL.md to reformat it.

Why

Both changes are personal patches to upstream NousResearch/hermes-agent. This fork exists to carry these patches while staying synced with upstream.

@maiixu
maiixu force-pushed the claude/voice-transcript-format branch from e69b6cd to fb1d523 Compare April 11, 2026 23:16
Reads ~/.hermes/stt_hotwords.txt and passes terms as initial_prompt
(faster-whisper) or prompt (Groq/OpenAI API). File read fresh each call.
@maiixu
maiixu force-pushed the claude/voice-transcript-format branch from fb1d523 to b638203 Compare April 11, 2026 23:23
Store transcript in self._pending_voice_transcript during enrichment.
Before returning the response to the user, prepend πŸŽ™ γ€Œtranscript」.

LLM still receives the original [The user sent a voice message~] format.
No LLM tokens spent on formatting β€” done at gateway layer.
@maiixu
maiixu force-pushed the claude/voice-transcript-format branch from b638203 to b13d767 Compare April 11, 2026 23:33
@maiixu
maiixu merged commit c53181e into main Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant