diff --git a/TTS/utils/audio.py b/TTS/utils/audio.py index 45c061d2..f5fb1d7f 100644 --- a/TTS/utils/audio.py +++ b/TTS/utils/audio.py @@ -610,7 +610,7 @@ class AudioProcessor(object): y = self._istft(S_complex * angles) if not np.isfinite(y).all(): print(" [!] Waveform is not finite everywhere. Skipping the GL.") - return np.array([0]) + return np.array([0.0]) for _ in range(self.griffin_lim_iters): angles = np.exp(1j * np.angle(self._stft(y))) y = self._istft(S_complex * angles) diff --git a/tests/inference_tests/test_synthesize.py b/tests/inference_tests/test_synthesize.py index 526f7dc8..635506ab 100644 --- a/tests/inference_tests/test_synthesize.py +++ b/tests/inference_tests/test_synthesize.py @@ -11,11 +11,10 @@ def test_synthesize(): # single speaker model run_cli(f'tts --text "This is an example." --out_path "{output_path}"') run_cli( - "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " - f'--text "This is an example." --out_path "{output_path}"' + "tts --model_name tts_models/en/ljspeech/glow-tts " f'--text "This is an example." --out_path "{output_path}"' ) run_cli( - "tts --model_name tts_models/en/ljspeech/speedy-speech-wn " + "tts --model_name tts_models/en/ljspeech/glow-tts " "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan " f'--text "This is an example." --out_path "{output_path}"' )