From 2ffa30133d44f2316716f885d65a1c116f5d41bb Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Tue, 19 May 2026 14:19:18 +0200 Subject: [PATCH] Fix sync-info to send ttsEngine and ttsVoice (not voice) - new-reel.tsx was still sending 'voice' parameter instead of 'ttsVoice/ttsEngine' - This caused sync-info to always fail with 400 'Texte et voix requis' for Gemini users --- client/src/pages/new-reel.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/pages/new-reel.tsx b/client/src/pages/new-reel.tsx index 3e74513..7699b0f 100644 --- a/client/src/pages/new-reel.tsx +++ b/client/src/pages/new-reel.tsx @@ -120,14 +120,15 @@ export default function NewReel() { const timer = setTimeout(() => { apiRequest('POST', '/api/reels/sync-info', { text: overlayText, - voice: ttsVoice, + ttsVoice, + ttsEngine, }) .then(r => r.json()) .then(data => setSyncInfo(data)) .catch(() => setSyncInfo(null)); }, 800); return () => clearTimeout(timer); - }, [overlayText, ttsEnabled, ttsVoice]); + }, [overlayText, ttsEnabled, ttsEngine, ttsVoice]); // État audio preview