torch-audiomentations icon indicating copy to clipboard operation
torch-audiomentations copied to clipboard

Padding transform

Open iver56 opened this issue 3 years ago • 1 comments

This transform takes a fraction of the end or the start of the audio and treats that part as padding. We can implement several modes:

  • [x] constant (zero)
  • [ ] wrap
  • [ ] reflect

iver56 avatar Jul 22 '21 08:07 iver56

This idea has been implemented in audiomentations recently:

https://github.com/iver56/audiomentations/blob/master/audiomentations/augmentations/padding.py

To get a deeper understanding of this, it's also useful to run the demo script in audiomentations and listen to the outputs

This issue is about implementing it in pytorch for torch-audiomentations :)

iver56 avatar Apr 04 '22 14:04 iver56