Hindi_ASR / wienerFilter.py
cdactvm's picture
Upload 12 files
bfde6e2 verified
raw
history blame contribute delete
572 Bytes
#!/usr/bin/env python
# coding: utf-8
# In[2]:
import scipy.signal
def wiener_filter(audio):
'''
The Wiener filter is designed to minimize the impact of noise by applying an adaptive filtering process.
It tries to estimate the original, clean signal by taking into account both the noisy signal and the statistical properties of the noise.
The Wiener filter is particularly useful when dealing with stationary noise (constant background noise, like white noise).
'''
return scipy.signal.wiener(audio)
# In[ ]: