Update app.py
Browse files
app.py
CHANGED
@@ -726,7 +726,7 @@ def clone_voice(user_voice,user_text,user_lang):
|
|
726 |
sovits_path = abs_path("pretrained_models/s2G488k.pth")
|
727 |
#tprint(f'Model loaded:{sovits_path}')
|
728 |
try:
|
729 |
-
prompt_text,
|
730 |
except UnboundLocalError as e:
|
731 |
wprint(f"The language in the audio cannot be recognized οΌ{str(e)}")
|
732 |
return None
|
|
|
726 |
sovits_path = abs_path("pretrained_models/s2G488k.pth")
|
727 |
#tprint(f'Model loaded:{sovits_path}')
|
728 |
try:
|
729 |
+
prompt_text, prompt_language = transcribe(user_voice)
|
730 |
except UnboundLocalError as e:
|
731 |
wprint(f"The language in the audio cannot be recognized οΌ{str(e)}")
|
732 |
return None
|