From bf5f4e9b7aa63013afdba79b583bd1d674950d4a Mon Sep 17 00:00:00 2001 From: Franco Viotti Date: Thu, 29 Jan 2026 15:09:40 -0300 Subject: [PATCH] fix(tts): clarify Telnyx telephony limitation and remove dismissive comment --- src/tts/tts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tts/tts.ts b/src/tts/tts.ts index fec413cb1..c1473c671 100644 --- a/src/tts/tts.ts +++ b/src/tts/tts.ts @@ -69,7 +69,6 @@ const TELEGRAM_OUTPUT = { // ElevenLabs output formats use codec_sample_rate_bitrate naming. // Opus @ 48kHz/64kbps is a good voice-note tradeoff for Telegram. elevenlabs: "opus_48000_64", - // Telnyx outputs MP3 only (16kHz); not ideal for Telegram voice bubbles but works. telnyx: "mp3_16000" as const, extension: ".opus", voiceCompatible: true, @@ -1380,7 +1379,7 @@ export async function textToSpeechTelephony(params: { continue; } if (provider === "telnyx") { - lastError = "telnyx: unsupported for telephony (MP3 output only)"; + lastError = "telnyx: WebSocket API outputs MP3, telephony requires PCM"; continue; }