From 0fd7812b0564cc7f08c62c384e4a7b2ac8854faa Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 3 Mar 2026 16:27:48 +0100 Subject: [PATCH] feat: Implement mobile new reel creation page with multi-step workflow for video upload, music selection, text overlay, and scheduling. --- ffmpeg-service/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ffmpeg-service/main.py b/ffmpeg-service/main.py index b2f9f00..ae5e8e7 100644 --- a/ffmpeg-service/main.py +++ b/ffmpeg-service/main.py @@ -305,7 +305,7 @@ async def generate_tts_with_subs( "⚠️ No word boundaries captured, falling back to linear timing" ) generate_simple_ass( - text_to_display, ass_path, total_duration=audio_duration + text_to_display, ass_path, total_duration=audio_duration, delay=2.0 ) print(f"✅ TTS success with voice: {attempt_voice}") @@ -701,6 +701,7 @@ async def process_reel(request: ReelRequest, x_api_key: str = Header(None)): tts_audio_path, tts_ass_path, display_text=clean_text_for_display(request.text), + delay=2.0, ) # Verify files were created @@ -1068,6 +1069,8 @@ async def preview_tts(request: ReelRequest, x_api_key: str = Header(None)): voice = "fr-FR-VivienneMultilingualNeural" # Pass original text for subtitles (implied in SRT for preview too if needed, though mostly audio) + # Preview TTS generation doesn't technically need the full 2s video delay, but if the frontend plays it against standard timing it might. + # Adding delay=0.0 here explicitly since it's just audio preview, or delay=2.0 if previewing video directly. await generate_tts_with_subs( clean_text, voice,