mirror of https://github.com/coqui-ai/TTS.git
remove gst handling in synthetizer.py class
This commit is contained in:
parent
557239db7f
commit
628afe5cb0
|
@ -122,13 +122,6 @@ class Synthesizer(object):
|
||||||
speaker_embedding = self.init_speaker(speaker_idx)
|
speaker_embedding = self.init_speaker(speaker_idx)
|
||||||
use_gl = self.vocoder_model is None
|
use_gl = self.vocoder_model is None
|
||||||
|
|
||||||
|
|
||||||
# check if compute gst style
|
|
||||||
gst_style_input = None
|
|
||||||
if self.tts_config.use_gst:
|
|
||||||
if self.tts_config.gst["gst_style_input"] not in ["", {}]:
|
|
||||||
gst_style_input = self.tts_config.gst["gst_style_input"]
|
|
||||||
|
|
||||||
for sen in sens:
|
for sen in sens:
|
||||||
# synthesize voice
|
# synthesize voice
|
||||||
waveform, _, _, mel_postnet_spec, _, _ = synthesis(
|
waveform, _, _, mel_postnet_spec, _, _ = synthesis(
|
||||||
|
@ -138,7 +131,7 @@ class Synthesizer(object):
|
||||||
self.use_cuda,
|
self.use_cuda,
|
||||||
self.ap,
|
self.ap,
|
||||||
speaker_idx,
|
speaker_idx,
|
||||||
gst_style_input,
|
None,
|
||||||
False,
|
False,
|
||||||
self.tts_config.enable_eos_bos_chars,
|
self.tts_config.enable_eos_bos_chars,
|
||||||
use_gl,
|
use_gl,
|
||||||
|
|
Loading…
Reference in New Issue