mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
explicit slience removal after voice synthesis in case of wrong stop token
This commit is contained in:
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user