From 90b33e398f0c2ea7edd8247c6bfe410bfe265e4d Mon Sep 17 00:00:00 2001 From: Eren G??lge Date: Sat, 6 May 2023 11:34:26 +0200 Subject: [PATCH] Use model_dir when there are multiple urls --- TTS/bin/synthesize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/bin/synthesize.py b/TTS/bin/synthesize.py index f93f062c..7dc4724d 100755 --- a/TTS/bin/synthesize.py +++ b/TTS/bin/synthesize.py @@ -349,8 +349,8 @@ If you don't specify any models, then it uses LJSpeech based English model. vc_path = model_path vc_config_path = config_path - # tortoise model - if model_path.split("--")[-1] == "tortoise-v2": + # tts model with multiple files to be loaded from the directory path + if isinstance(model_item["github_rls_url"], list): model_dir = model_path tts_path = None tts_config_path = None