I want to cut the audio files. However, whenever I cut it, there adds a glitch, a cutting noise where I cut the audio. How can I remove this noise?
The code I use to record the audio is:
import sounddevice as sd
from scipy.io.wavfile import write
fs = 16000 # Sample rate
seconds = 1.5 # Duration of recording
myrecording = sd.rec(int(seconds*fs), samplerate=fs, channels=1, dtype='int16') #recor the audio
sd.wait() # Wait until recording is finished
myrecording=myrecording[8000:] #get one second data
write('output.wav', fs, myrecording) # Save as WAV file
Thanks in advance.