Update waveletDenoise.py
Browse files- waveletDenoise.py +1 -1
waveletDenoise.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import pywt
|
2 |
-
|
3 |
# Function to apply wavelet denoising
|
4 |
def wavelet_denoise(audio, wavelet='db1', level=1):
|
5 |
coeffs = pywt.wavedec(audio, wavelet, mode='per')
|
|
|
1 |
import pywt
|
2 |
+
import numpy as np
|
3 |
# Function to apply wavelet denoising
|
4 |
def wavelet_denoise(audio, wavelet='db1', level=1):
|
5 |
coeffs = pywt.wavedec(audio, wavelet, mode='per')
|