mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 23:18:12 +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
@@ -34,6 +34,7 @@ class ReelRequest(BaseModel):
|
||||
music_volume: float = 0.25
|
||||
tts_enabled: bool = False
|
||||
tts_voice: str = "fr-FR-VivienneNeural"
|
||||
draw_text: bool = True
|
||||
|
||||
|
||||
def clean_text_for_tts(text: str) -> str:
|
||||
@@ -155,7 +156,8 @@ async def process_reel(request: ReelRequest, x_api_key: str = Header(None)):
|
||||
# Text Overlay
|
||||
# If TTS is enabled, we use the generated VTT subtitles for perfect sync
|
||||
# If not, we use the standard drawtext
|
||||
if request.text:
|
||||
# Only apply if draw_text is True
|
||||
if request.text and request.draw_text:
|
||||
if has_tts:
|
||||
# Use subtitles filter
|
||||
# Force style to look like TikTok/Reels text (Bottom center, white, black box)
|
||||
|
||||
Reference in new issue
Block a user