mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-20 13:38:10 +02:00
fix tts and texte on vidéo
This commit is contained in:
1 parent
a512084f1b
commit
23abe41903
4 files changed
+26
-1
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user