Skip to content

feat: add Telegram voice transcription - #175

Merged
QueryPlanner merged 2 commits into
mainfrom
codex/telegram-cloudflare-transcription
Aug 22, 2026
Merged

feat: add Telegram voice transcription#175
QueryPlanner merged 2 commits into
mainfrom
codex/telegram-cloudflare-transcription

Conversation

@QueryPlanner

@QueryPlanner QueryPlanner commented Aug 22, 2026

Copy link
Copy Markdown
Owner

What

Add native Telegram voice-note transcription through Cloudflare Workers AI Whisper Large v3 Turbo.

Why

Allow Blacki users to press the native Telegram voice button and have the resulting transcript processed as a normal text turn.

How

  • Download Telegram voice notes transiently and transcribe them with Cloudflare.
  • Send base64 audio to @cf/openai/whisper-large-v3-turbo.
  • Serialize voice handling to bound concurrent audio/provider memory.
  • Forward Cloudflare credentials through the production deployment workflow.
  • Document configuration, retention, and add routing/provider/deployment tests.
  • Stabilize the calendar-relative Google Health test fixture used by the full CI gate.

Tests

  • uv run ruff format --check
  • uv run ruff check --output-format=github
  • uv run mypy .
  • uv run pytest tests/test_telegram_transcription.py tests/test_telegram_bot.py tests/test_deployment_contract.py (297 passed)
  • uv run pytest --cov=src --cov-report=term-missing (1,654 passed; 100.00% coverage)
  • Production Docker build and isolated readiness smoke test
  • Live synthetic OGG/Opus request to Cloudflare returned HTTP 200 with transcription output

Related Issues

  • None.

- Add Cloudflare Whisper voice-note processing
- Forward Cloudflare settings through deployment
- Serialize voice handling and document retention
- Derive provider dates from the current test window
@QueryPlanner
QueryPlanner merged commit d2763e6 into main Aug 22, 2026
3 checks passed
@QueryPlanner
QueryPlanner deleted the codex/telegram-cloudflare-transcription branch August 22, 2026 07:19
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