Skip to content

Commit

Permalink
Remove audio padding before mel spec extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Edresson authored and erogol committed May 7, 2022
1 parent fbdf76b commit 6003467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/vocoder/datasets/gan_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def load_item(self, idx):
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
Expand Down

0 comments on commit 6003467

Please sign in to comment.