iver56 / audiomentations

A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
https://iver56.github.io/audiomentations/
MIT License
1.83k stars 187 forks source link

Feature Request: Aliasing #261

Closed mmxgn closed 6 months ago

mmxgn commented 1 year ago

This is a nice degradation which would help imho in restoration algorithms and is provided in the Audio Degradation Toolbox. E.g. do the following:

  1. Naively downsample to a lower sample rate without filtering
  2. Upsample normally.
iver56 commented 1 year ago

Yep, good idea

atamazian commented 7 months ago

Can you assign me to this issue?

iver56 commented 7 months ago

Ah, yes, here we have the issue for the stuff I mentioned in #264

Sample rate reduction without low-pass filtering. Also known as sample-and-hold or decimation, but I personally like to think of it as nearest neighbour. This is a terrible form of resampling audio quality wise, but it leads to an interesting kind of output that can be used in music (often electronic music), and it can be used for data augmentation if not overdone http://gdsp.hf.ntnu.no/lessons/1/3/

I will assign the issue to you, atamazian 👍 Thanks for contributing

iver56 commented 7 months ago

TODO: