fix: voice names labels and backend mapping + async syntax error in ffmpeg service

This commit is contained in:
Jacques committed 2026-01-22 20:15:03 +01:00
1 parent 901c8581f6
commit 07b3d1a62a
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -761,7 +761,7 @@ export default function NewReel() {
}`}
>
<div className="font-semibold">Masculine</div>
<div className="text-xs text-muted-foreground">Henri</div>
<div className="text-xs text-muted-foreground">Rémy</div>
</div>
</div>
<p className="text-xs text-muted-foreground mt-2">
+4 -4
View File
@@ -46,7 +46,7 @@ def clean_text_for_tts(text: str) -> str:
return " ".join(text.split())
def generate_tts_with_subs(
async def generate_tts_with_subs(
text: str, voice: str, audio_path: Path, vtt_path: Path
):
"""Generate TTS audio with subtitles, with retry and fallback voices."""
@@ -226,12 +226,12 @@ async def process_reel(request: ReelRequest, x_api_key: str = Header(None)):
# Check for male/female voice map
voice = request.tts_voice
if voice == "male":
voice = "fr-FR-HenriNeural"
voice = "fr-FR-RemyMultilingualNeural"
elif voice == "female":
voice = "fr-FR-VivienneNeural"
voice = "fr-FR-VivienneMultilingualNeural"
elif not voice or "Neural" not in voice:
# Default if invalid
voice = "fr-FR-VivienneNeural"
voice = "fr-FR-VivienneMultilingualNeural"
print(f"🔊 Using voice: {voice}")