mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-12-03 14:53:33 +08:00
Fix inference_cli.py never loading the requested SoVITS weights
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
This commit is contained in:
parent
48b1a0169a
commit
4509e68e04
@ -28,7 +28,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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user