We are using 3 algorithms to perform noise filtering on test_noise.wav audio file which contains some background noise.
The algorithms used are:-
- Time Domain - Moving Average Filter (moving_average.py)
- Frequency Domain Filter (freq_filter.py)
- Spectral Subtraction (spectral_subtraction.py)
To run this in your device:
- Make sure you have Python along with all the imported libraries installed.
- To input your own wav file, Replace the line in code
f = we.open("test_noise.wav", 'rb')
withf = we.open("your_file_name.wav", 'rb')
- Run the python file using terminal or any other IDE (spyder, VS Code, etc)
- The output wav file will be saved in the same folder which has your python file.