-2

I have a project to create a noise reduction app in Python. I've searched many ways to solve this problem, but each example I've tried doesn't work, there are always some exceptions thrown.

I've tried this

import noisereduce as nr
from scipy.io import wavfile

rate, data = wavfile.read("input.wav")
noisy_part = data[10000:15000]
reduced_noise = nr.reduce_noise(audio_clip=data, noise_clip=noisy_part, verbose=True)

But I get this enter image description here

David Buck
  • 3,752
  • 35
  • 31
  • 35
Nikita
  • 35
  • 2

1 Answers1

0
import soundfile as sf
data,rate=sf.read("input.wav")

it will work

Chandan
  • 571
  • 4
  • 21