mirror of https://github.com/coqui-ai/TTS.git
Remove audio padding before mel spec extraction
parent
76b274e690
commit
657c5442e5
|
@ -115,8 +115,8 @@ class GANDataset(Dataset):
|
|||
audio, mel = self.cache[idx]
|
||||
else:
|
||||
audio = self.ap.load_wav(wavpath)
|
||||
audio, _ = self._pad_short_samples(audio)
|
||||
mel = self.ap.melspectrogram(audio)
|
||||
audio, mel = self._pad_short_samples(audio, mel)
|
||||
else:
|
||||
|
||||
# load precomputed features
|
||||
|
|
Loading…
Reference in New Issue