mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Remove audio padding before mel spec extraction
This commit is contained in:
committed by
Eren Gölge
parent
fbdf76b2fc
commit
60034674f9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user