From ab26129a9f9fea6711d7c0e26eff4a60e7de27bb Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 31 Oct 2023 17:02:03 +0200 Subject: [PATCH] Simplify branch in TTS/bin/synthesize.py --- TTS/bin/synthesize.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TTS/bin/synthesize.py b/TTS/bin/synthesize.py index ef41c8e13f..09ff6df6a6 100755 --- a/TTS/bin/synthesize.py +++ b/TTS/bin/synthesize.py @@ -426,10 +426,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":