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.
A package that can be used to remove particular color from an image in Python.
pip install matplotlib
pip install noisereduce
pip install sounddevice
pip install soundfile
pip install scipy
pip install PySimpleGUI
main.py
Note: Recording duration must be valid.
Note: File will be saved in Same directory as the python 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...
Submitted by Lakshay Sharma (LakshaySharma)
Download packets of source code on Coders Packet
Comments