diff --git a/GPT_SoVITS/inference_cli.py b/GPT_SoVITS/inference_cli.py index 45e6d28a..3e63578f 100644 --- a/GPT_SoVITS/inference_cli.py +++ b/GPT_SoVITS/inference_cli.py @@ -29,7 +29,12 @@ def synthesize( # Change model weights change_gpt_weights(gpt_path=GPT_model_path) - change_sovits_weights(sovits_path=SoVITS_model_path) + for _ in change_sovits_weights( + sovits_path=SoVITS_model_path, + prompt_language=i18n(ref_language), + text_language=i18n(target_language), + ): + pass # Synthesize audio synthesis_result = get_tts_wav(