From 4f2a96383496c4b0f3ce4def9bb51b8a01f75f06 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 16 Apr 2026 21:16:54 +0200 Subject: [PATCH] fix(pitch-deck): set OVH TTS sample rate to 16000 Hz (Riva native) OVH Riva ignores the sample_rate_hz request param and always returns at its native 16000 Hz. Declaring a higher rate in the WAV header causes proportionally slower/deeper playback. 16000 Hz matches the actual output. Co-Authored-By: Claude Sonnet 4.6 --- pitch-deck/app/api/presenter/tts/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitch-deck/app/api/presenter/tts/route.ts b/pitch-deck/app/api/presenter/tts/route.ts index 058152d..93cfdf6 100644 --- a/pitch-deck/app/api/presenter/tts/route.ts +++ b/pitch-deck/app/api/presenter/tts/route.ts @@ -24,7 +24,7 @@ const OVH_TTS = { : null, } as const -const SAMPLE_RATE_HZ = parseInt(process.env.OVH_TTS_SAMPLE_RATE || '44100', 10) +const SAMPLE_RATE_HZ = parseInt(process.env.OVH_TTS_SAMPLE_RATE || '16000', 10) export async function POST(request: NextRequest) { try {