mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
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:
1 parent
a9cda4ffd4
commit
2ffa30133d
1 file changed
+3
-2
@@ -120,14 +120,15 @@ export default function NewReel() {
|
|||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
apiRequest('POST', '/api/reels/sync-info', {
|
apiRequest('POST', '/api/reels/sync-info', {
|
||||||
text: overlayText,
|
text: overlayText,
|
||||||
voice: ttsVoice,
|
ttsVoice,
|
||||||
|
ttsEngine,
|
||||||
})
|
})
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(data => setSyncInfo(data))
|
.then(data => setSyncInfo(data))
|
||||||
.catch(() => setSyncInfo(null));
|
.catch(() => setSyncInfo(null));
|
||||||
}, 800);
|
}, 800);
|
||||||
return () => clearTimeout(timer);
|
return () => clearTimeout(timer);
|
||||||
}, [overlayText, ttsEnabled, ttsVoice]);
|
}, [overlayText, ttsEnabled, ttsEngine, ttsVoice]);
|
||||||
|
|
||||||
|
|
||||||
// État audio preview
|
// État audio preview
|
||||||
|
|||||||
Reference in new issue
Block a user