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":