Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Jul 12, 2022
1 parent 9440f15 commit cf82b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def tts(
waveform = waveform.squeeze()

# trim silence
if self.tts_config.audio["do_trim_silence"] is True:
if "do_trim_silence" in self.tts_config.audio and self.tts_config.audio["do_trim_silence"]:
waveform = trim_silence(waveform, self.tts_model.ap)

wavs += list(waveform)
Expand Down

0 comments on commit cf82b80

Please sign in to comment.