importnoisereduceasnr #loaddata rate,data=wavfile.read("mywav.wav") #selectsectionofdatathatisnoise noisy_part=data[10000:15000] #performnoisereduction reduced_noise=nr.reduce_noise(audio_clip=data,noise_clip=noisy_part,verbose=True)