mirror of https://github.com/coqui-ai/TTS.git
fix constant GL bug in synthesis
This commit is contained in:
parent
df42a4a03a
commit
6977899d07
|
@ -78,6 +78,7 @@ def synthesis(model,
|
||||||
style_wav=None,
|
style_wav=None,
|
||||||
truncated=False,
|
truncated=False,
|
||||||
enable_eos_bos_chars=False, #pylint: disable=unused-argument
|
enable_eos_bos_chars=False, #pylint: disable=unused-argument
|
||||||
|
use_griffin_lim=False,
|
||||||
do_trim_silence=False):
|
do_trim_silence=False):
|
||||||
"""Synthesize voice for the given text.
|
"""Synthesize voice for the given text.
|
||||||
|
|
||||||
|
@ -111,6 +112,8 @@ def synthesis(model,
|
||||||
postnet_output, decoder_output, alignment = parse_outputs(
|
postnet_output, decoder_output, alignment = parse_outputs(
|
||||||
postnet_output, decoder_output, alignments)
|
postnet_output, decoder_output, alignments)
|
||||||
# plot results
|
# plot results
|
||||||
|
wav = None
|
||||||
|
if use_griffin_lim:
|
||||||
wav = inv_spectrogram(postnet_output, ap, CONFIG)
|
wav = inv_spectrogram(postnet_output, ap, CONFIG)
|
||||||
# trim silence
|
# trim silence
|
||||||
if do_trim_silence:
|
if do_trim_silence:
|
||||||
|
|
Loading…
Reference in New Issue