Skip to content

feat(tts): send Telegram voice messages as OGG/Opus (sendVoice) instead of audio files #43072

Description

@antlarionov

Problem

When TTS responds via Telegram, audio is sent as an audio file (MP3 via sendAudio), not as a Telegram voice message (waveform circle via sendVoice).

Expected behavior

TTS replies in Telegram should be delivered as voice notes — the round waveform UI that plays inline — not as file attachments.

Context

Telegram requires OGG/Opus format for voice notes (sendVoice API method). Currently the Edge TTS provider outputs MP3, which lands as a generic audio player.

PR #42537 already adds OGG/Opus support for Matrix voice notes — it would be great to extend the same treatment to Telegram.

Proposed solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions