Skip to content

[FEATURE] Add support for voice to text when using telegram or any of the channels #433

Closed

Description

@edenreich

Summary

Telegram supports a voice message, I would like that the voice message is being transcribed into text when downloaded and passed to the LLM as text so the agent can reply back.

This helps when for example you are on the go and you don't have time to type something so you can just send a voice message.

Check the different API's available for Speech to Text (STT) and offer perhaps 2 different integrations.

Compare for example Deepgram vs. AssemblyAI or any other providers out there, the focus is on english, we don't need a rich language model that supports too many languages, let's keep it simple.

Acceptance Criteria

  • Voice messages are supported and are being transcribed
  • The agent retain the voice messages locally (configured with cleanup - for example retain only the last 10 voice messages)
  • The LLM returns a reply when a voice message is submitted
  • It's tested
  • It's documented

Activity

  1. added
    enhancement
    on Apr 26, 2026
  2. changed the title [-][FEATURE] Add support to voice to text when using telegram or any of the channels[/-] [+][FEATURE] Add support for voice to text when using telegram or any of the channels[/+] on Apr 26, 2026
  3. edenreich commented on Jun 27, 2026

    @edenreich
    ContributorAuthor

    This is implemented. Inbound Telegram voice and audio messages are downloaded, decoded
    with ffmpeg, and transcribed to text via local whisper.cpp before the agent sees them,
    and the agent replies to the transcribed text. Shipped in commit 2f3828a and tracked
    under the duplicate #559.

    Acceptance-criteria status:

    • Voice messages supported and transcribed - telegram.go applyVoiceTranscription / transcribeVoice
    • LLM replies to a voice message - transcript replaces the placeholder and is forwarded to the agent
    • Tested - telegram_test.go + internal/stt + internal/audio tests
    • Documented - docs/speech-to-text.md (Telegram section), README, docs/channels.md
    • Retain voice files locally with cleanup - not implemented (audio is transcribed then deleted). Split into [FEATURE] Retain inbound voice/audio files locally with cleanup #668.

    Design note: rather than a cloud STT provider (Deepgram/AssemblyAI), this uses a local,
    offline engine (whisper.cpp) - no API keys, no per-minute cost, private. The
    speech_to_text.engine config field leaves room for more engines later.

    Closing as completed; remaining retention work tracked in #668.

  4. moved this from Todo to Done in 2026on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions