fix(tts): clarify Telnyx telephony limitation and remove dismissive comment

This commit is contained in:
Franco Viotti committed 2026-01-29 15:09:40 -03:00
1 parent ff47117510
commit bf5f4e9b7a
1 file changed
+1 -2
+1 -2
View File
@@ -69,7 +69,6 @@ const TELEGRAM_OUTPUT = {
// ElevenLabs output formats use codec_sample_rate_bitrate naming. // ElevenLabs output formats use codec_sample_rate_bitrate naming.
// Opus @ 48kHz/64kbps is a good voice-note tradeoff for Telegram. // Opus @ 48kHz/64kbps is a good voice-note tradeoff for Telegram.
elevenlabs: "opus_48000_64", elevenlabs: "opus_48000_64",
// Telnyx outputs MP3 only (16kHz); not ideal for Telegram voice bubbles but works.
telnyx: "mp3_16000" as const, telnyx: "mp3_16000" as const,
extension: ".opus", extension: ".opus",
voiceCompatible: true, voiceCompatible: true,
@@ -1380,7 +1379,7 @@ export async function textToSpeechTelephony(params: {
continue; continue;
} }
if (provider === "telnyx") { if (provider === "telnyx") {
lastError = "telnyx: unsupported for telephony (MP3 output only)"; lastError = "telnyx: WebSocket API outputs MP3, telephony requires PCM";
continue; continue;
} }