fix tts and texte on vidéo

This commit is contained in:
Michael committed 2026-01-22 16:20:56 +01:00
1 parent a512084f1b
commit 23abe41903
4 files changed
+26 -1

No files matched your search

+13
View File
@@ -66,6 +66,7 @@ export default function NewReel() {
const [musicVolume, setMusicVolume] = useState([25]);
const [ttsEnabled, setTtsEnabled] = useState(false);
const [ttsVoice, setTtsVoice] = useState("female");
const [drawText, setDrawText] = useState(true);
// État audio preview
const [isPlaying, setIsPlaying] = useState<string | null>(null);
@@ -310,6 +311,7 @@ export default function NewReel() {
musicVolume: musicVolume[0] / 100,
ttsEnabled,
ttsVoice,
drawText,
});
};
@@ -697,6 +699,17 @@ export default function NewReel() {
rows={4}
/>
<div className="flex items-center space-x-2 mt-4">
<Switch
id="draw-text"
checked={drawText}
onCheckedChange={setDrawText}
/>
<Label htmlFor="draw-text" className="font-medium cursor-pointer">
Afficher le texte sur la vidéo
</Label>
</div>
<div className="flex items-center space-x-2 mt-4">
<Switch
id="tts-mode"