From 45435624678fb756406e97f881f0bbc785748e6e Mon Sep 17 00:00:00 2001 From: kirianguiller Date: Tue, 16 Feb 2021 20:23:02 +0100 Subject: [PATCH] remove gst handling in synthetizer.py class --- TTS/utils/synthesizer.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/TTS/utils/synthesizer.py b/TTS/utils/synthesizer.py index 3e65e175..2a779e53 100644 --- a/TTS/utils/synthesizer.py +++ b/TTS/utils/synthesizer.py @@ -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,