Simplify branch in TTS/bin/synthesize.py

This commit is contained in:
Aarni Koskela 2023-10-31 17:02:03 +02:00
parent 08fa5d4098
commit 4584ef6580
1 changed files with 2 additions and 4 deletions

View File

@ -379,10 +379,8 @@ def main():
if model_item["model_type"] == "tts_models":
tts_path = model_path
tts_config_path = config_path
if "default_vocoder" in model_item:
args.vocoder_name = (
model_item["default_vocoder"] if args.vocoder_name is None else args.vocoder_name
)
if args.vocoder_name is None and "default_vocoder" in model_item:
args.vocoder_name = model_item["default_vocoder"]
# voice conversion model
if model_item["model_type"] == "voice_conversion_models":