Skip to content

feat(telegram): voice transcription via Gemini (#318) - #401

Merged
vybe merged 1 commit into
mainfrom
feature/318-telegram-voice-whisper
Apr 18, 2026
Merged

vybe merged 1 commit into
mainfrom
feature/318-telegram-voice-whisper

Conversation

@vybe

@vybe vybe commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add voice message transcription for Telegram using Gemini 2.0 Flash
  • Voice messages are downloaded, validated, and transcribed before reaching agents
  • Transcribed text is prefixed with 🎙️ emoji for visual indication

Changes

  • src/backend/services/telegram_media.py — New process_voice() + _transcribe_audio_gemini() functions
  • src/backend/adapters/message_router.py — Voice processing hook (step 2b) for Telegram messages
  • src/backend/adapters/telegram_adapter.py — Added video_note placeholder for future support
  • tests/unit/test_telegram_voice.py — 22 unit tests for validation logic
  • docs/memory/feature-flows/telegram-integration.md — Updated feature flow
  • .claude/agents/test-runner.md — Updated test catalog

Test Plan

  • Unit tests pass: pytest tests/unit/test_telegram_voice.py -v (22 tests)
  • Manual verification: Send voice message to Telegram bot, verify transcription

Limits

  • Duration: 5 minutes max
  • File size: 10MB max
  • Requires GEMINI_API_KEY configured

Closes #318

🤖 Generated with Claude Code

Add voice message transcription for Telegram using Gemini 2.0 Flash.
Voice messages are downloaded, validated (5 min / 10MB limits), and
transcribed before reaching the agent. Transcribed text is prefixed
with 🎙️ emoji.

- Add process_voice() to telegram_media.py with Gemini integration
- Add voice processing hook in message_router.py (step 2b)
- Add video_note placeholder for future support
- Add 22 unit tests for validation logic
- Update telegram-integration.md feature flow

Closes #318

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

feat(telegram): voice-in via Whisper transcription

1 participant