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

Noise gate augmentation

Open shahules786 opened this issue 2 years ago • 2 comments

Implemented spectral gating based on https://timsainburg.com/noise-reduction-python.html Can you check this and let me know what you think? @iver56 I will implement the tests after the review if that's fine.

shahules786 avatar May 12 '22 04:05 shahules786

Thanks for the initiative! It would be nice if you could add it to the demo script as well, so we can listen to what it sounds like :)

Done.

shahules786 avatar May 13 '22 07:05 shahules786

I listened to an output from the demo script now, and I can hear a buzzy sound that was somehow added to my original sound. I did not expect this. Maybe something is wrong with the implementation? I can also see it in the spectrogram: spectralgating

I expected something more like this:

spectralgating-expected

(I created this "expected" example with Audacity's built-in noise reduction plugin)

Here are the 3 wavs that I compared in those two spectrogram gifs: spectral_gating_sounds.zip

iver56 avatar May 18 '22 14:05 iver56