remove gst handling in synthetizer.py class

pull/3/head
kirianguiller 2021-02-16 20:23:02 +01:00
parent 184ce07718
commit 22a6bbfa80
1 changed files with 1 additions and 8 deletions

View File

@ -122,13 +122,6 @@ class Synthesizer(object):
speaker_embedding = self.init_speaker(speaker_idx)
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:
# synthesize voice
waveform, _, _, mel_postnet_spec, _, _ = synthesis(
@ -138,7 +131,7 @@ class Synthesizer(object):
self.use_cuda,
self.ap,
speaker_idx,
gst_style_input,
None,
False,
self.tts_config.enable_eos_bos_chars,
use_gl,