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
This commit is contained in:
Michael committed 2026-05-19 14:19:18 +02:00
1 parent a9cda4ffd4
commit 2ffa30133d
1 file changed
+3 -2
+3 -2
View File
@@ -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