From a2cf17b461c62509ebc99a4337503b2f086a8a4d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 26 Aug 2026 02:38:40 -0700 Subject: [PATCH] refactor(meeting-bot): inline audio fallback guard (#129975) Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-6475-7130-8be6-39147410914b Co-authored-by: Amp --- src/meeting-bot/realtime-audio-format.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/meeting-bot/realtime-audio-format.ts b/src/meeting-bot/realtime-audio-format.ts index 9ab546f83166..488774a14741 100644 --- a/src/meeting-bot/realtime-audio-format.ts +++ b/src/meeting-bot/realtime-audio-format.ts @@ -82,10 +82,7 @@ function decodeMeetingTelephonyTtsAudio( case "alaw": return alawToPcm(audio); } - return unsupportedMeetingTelephonyTtsFormat(sourceFormat); -} - -function unsupportedMeetingTelephonyTtsFormat(_format: never): never { + sourceFormat satisfies never; throw new Error("Unsupported telephony TTS output format for meeting platform"); }