Skip to content

Commit

Permalink
Simplify branch in TTS/bin/synthesize.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 7, 2023
1 parent e45657c commit 796064b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions TTS/bin/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 796064b

Please sign in to comment.