mirror of https://github.com/coqui-ai/TTS.git
Use `glow-tts` in synthesis tests
This commit is contained in:
parent
d5f256b34c
commit
7d8f77385a
|
@ -610,7 +610,7 @@ class AudioProcessor(object):
|
||||||
y = self._istft(S_complex * angles)
|
y = self._istft(S_complex * angles)
|
||||||
if not np.isfinite(y).all():
|
if not np.isfinite(y).all():
|
||||||
print(" [!] Waveform is not finite everywhere. Skipping the GL.")
|
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):
|
for _ in range(self.griffin_lim_iters):
|
||||||
angles = np.exp(1j * np.angle(self._stft(y)))
|
angles = np.exp(1j * np.angle(self._stft(y)))
|
||||||
y = self._istft(S_complex * angles)
|
y = self._istft(S_complex * angles)
|
||||||
|
|
|
@ -11,11 +11,10 @@ def test_synthesize():
|
||||||
# single speaker model
|
# single speaker model
|
||||||
run_cli(f'tts --text "This is an example." --out_path "{output_path}"')
|
run_cli(f'tts --text "This is an example." --out_path "{output_path}"')
|
||||||
run_cli(
|
run_cli(
|
||||||
"tts --model_name tts_models/en/ljspeech/speedy-speech-wn "
|
"tts --model_name tts_models/en/ljspeech/glow-tts " f'--text "This is an example." --out_path "{output_path}"'
|
||||||
f'--text "This is an example." --out_path "{output_path}"'
|
|
||||||
)
|
)
|
||||||
run_cli(
|
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 "
|
"--vocoder_name vocoder_models/en/ljspeech/multiband-melgan "
|
||||||
f'--text "This is an example." --out_path "{output_path}"'
|
f'--text "This is an example." --out_path "{output_path}"'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue