josh-yang92 / denoise_audio

denoising a .wav audio file
MIT License
1 stars 0 forks source link

too many indices for array: array is 1-dimensional, but 2 were indexed #1

Open mrzachhigginsofficial opened 2 years ago

mrzachhigginsofficial commented 2 years ago

Hi there, I'm looking for a way to programmatically denoise audio captured from an SDR (it tends to be VERY VERY noisy, but it doesn't need studio quality after post-processing). I was looking to test your library and incorporate it into our group's toolset.

Anyway, I have a mono-channel 192 kbps bit rate WAV file that produces the following error when I try to denoise it.

image

Looks like scipy.wavefile.read() is only creating a 1d array. I guess since we're reading a mono-channel file, we end up with a 1d array (instead of 2)? image

Would you be able to help me debug this? I can provide a sample audio file that reproduces the issue if you would like.

josh-yang92 commented 2 years ago

Hi @mrzachhigginsofficial, I have made the necessary changes, so hopefully, it should work for mono channel files now. I have also made some changes in the readme.

Please let me know if you face any other issues. Thanks!

mrzachhigginsofficial commented 2 years ago

Thank you! Sorry about taking so long to get back. Will test this before the weekend!