mirror of https://github.com/coqui-ai/TTS.git
explicit slience removal after voice synthesis in case of wrong stop token
This commit is contained in:
parent
14ba3a1a30
commit
c8d7a6a84e
|
@ -20,5 +20,5 @@ def synthesis(m, s, CONFIG, use_cuda, ap):
|
|||
mel_spec = mel_spec[0].data.cpu().numpy()
|
||||
alignment = alignments[0].cpu().data.numpy()
|
||||
wav = ap.inv_spectrogram(linear_spec.T)
|
||||
# wav = wav[:ap.find_endpoint(wav)]
|
||||
wav = wav[:ap.find_endpoint(wav)]
|
||||
return wav, alignment, linear_spec, mel_spec, stop_tokens
|
Loading…
Reference in New Issue