torch-audiomentations
torch-audiomentations copied to clipboard
Padding transform
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
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 :)