Noise removal/ reducer from the audio file in python. De-noising is done using Wavelets and thresholding is done by VISU Shrink thresholding technique

AP-Atul AP-Atul Last update: May 03, 2024

Audio De-noising

A simple yet very powerful noise remover and reducer built in python. The noise removed by using Wavelet Transform.

Wavelets has been very powerful tool to decompose the audio signal into parts and apply thresholds to eliminate unwanted signal like noise. The thresholding method is the most important in the process of Audio De nosing.

The thresholding used is VisuShrink method or the universal threshold introduce by Donoho

This repo uses pywt. I have a custom implementation of wavelet here wavelets & wavelets-ext (cython speed up)

Execution

  • Install the dependencies $ pip3 install -r requirements.txt
  • Use the denoise.py file
    from denoise import AudioDeNoise 
    
    audioDenoiser = AudioDeNoise(inputFile="input.wav")
    audioDenoiser.deNoise(outputFile="input_denoised.wav")
    audioDenoiser.generateNoiseProfile(noiseFile="input_noise_profile.wav")

Subscribe to our newsletter