diff --git a/utils/synthesis.py b/utils/synthesis.py index a53c12dc..03d7072e 100644 --- a/utils/synthesis.py +++ b/utils/synthesis.py @@ -91,7 +91,7 @@ def trim_silence(wav, ap): def inv_spectrogram(postnet_output, ap, CONFIG): - if CONFIG.model in ["Tacotron", "TacotronGST"]: + if CONFIG.model.lower() in ["tacotron"]: wav = ap.inv_spectrogram(postnet_output.T) else: wav = ap.inv_melspectrogram(postnet_output.T)