mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
fix: voice names labels and backend mapping + async syntax error in ffmpeg service
This commit is contained in:
1 parent
901c8581f6
commit
07b3d1a62a
2 files changed
+5
-5
No files matched your search
@@ -761,7 +761,7 @@ export default function NewReel() {
|
|||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className="font-semibold">Masculine</div>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-muted-foreground mt-2">
|
<p className="text-xs text-muted-foreground mt-2">
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ def clean_text_for_tts(text: str) -> str:
|
|||||||
return " ".join(text.split())
|
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
|
text: str, voice: str, audio_path: Path, vtt_path: Path
|
||||||
):
|
):
|
||||||
"""Generate TTS audio with subtitles, with retry and fallback voices."""
|
"""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
|
# Check for male/female voice map
|
||||||
voice = request.tts_voice
|
voice = request.tts_voice
|
||||||
if voice == "male":
|
if voice == "male":
|
||||||
voice = "fr-FR-HenriNeural"
|
voice = "fr-FR-RemyMultilingualNeural"
|
||||||
elif voice == "female":
|
elif voice == "female":
|
||||||
voice = "fr-FR-VivienneNeural"
|
voice = "fr-FR-VivienneMultilingualNeural"
|
||||||
elif not voice or "Neural" not in voice:
|
elif not voice or "Neural" not in voice:
|
||||||
# Default if invalid
|
# Default if invalid
|
||||||
voice = "fr-FR-VivienneNeural"
|
voice = "fr-FR-VivienneMultilingualNeural"
|
||||||
|
|
||||||
print(f"🔊 Using voice: {voice}")
|
print(f"🔊 Using voice: {voice}")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user