Remove noise from speech or audio in Python
A package that can be used to remove noise from a speech or audio in Python. A Basic GUI for recording and plotting is also provided in python.
Remove particular color from an image in Python
A package that can be used to remove particular color from an image in Python.
Setup
Code only
pip install matplotlib
pip install noisereduce
pip install sounddevice
pip install soundfile
pip install scipy
GUI:
pip install PySimpleGUI
How to use
main.py
For custom recording use file as it.
Note: Recording duration must be valid.
Note: File will be saved in Same directory as the python file.
For Choosing the audio file:
Remove the following:
fs = 44100 # Sample rate
seconds = int(input("Enter the recording length (in s) : ")) # Duration of recording
print("Starting Recording...")
myrecording = sd.rec(int(seconds * fs), samplerate=fs, channels=1)
sd.wait() # Wait until recording is finished
write('output.wav', fs, myrecording)
print("...Stopped !")
Change the output.wav to desired file
data, rate = sf.read('___my_file.wav___')
RemoveNoiseGUI.py
Run normally and GUI should appear.

GUI

After Recording...

Project Files
/
Loading...
| .. | ||
| This directory is empty. | ||