diff --git a/pitch-deck/app/api/presenter/tts/route.ts b/pitch-deck/app/api/presenter/tts/route.ts index d69ef3f..6699b22 100644 --- a/pitch-deck/app/api/presenter/tts/route.ts +++ b/pitch-deck/app/api/presenter/tts/route.ts @@ -33,8 +33,8 @@ export async function POST(request: NextRequest) { let ttsText = text if (language === 'de') { ttsText = ttsText - .replace(/BreakPilot/g, 'Brejk-Peilot') - .replace(/Breakpilot/g, 'Brejk-Peilot') + .replace(/BreakPilot/g, 'Brejk Peilott') + .replace(/Breakpilot/g, 'Brejk Peilott') .replace(/COMPLAI/g, 'Complei') .replace(/Executive Summary/g, 'Exekjutiv Sammäri') .replace(/Onepager/g, 'Wann-Päidscher') @@ -100,7 +100,7 @@ async function synthesizeViaOvh( return new NextResponse(new Uint8Array(wav), { headers: { 'Content-Type': 'audio/wav', - 'Cache-Control': 'public, max-age=86400', + 'Cache-Control': 'no-cache', 'X-TTS-Source': 'ovh', }, }) @@ -124,7 +124,7 @@ async function synthesizeViaComplianceService(text: string, language: string): P return new NextResponse(audioBuffer, { headers: { 'Content-Type': 'audio/mpeg', - 'Cache-Control': 'public, max-age=86400', + 'Cache-Control': 'no-cache', 'X-TTS-Cache': res.headers.get('X-TTS-Cache') || 'unknown', 'X-TTS-Source': 'compliance', },