xiph / rnnoise

Recurrent neural network for audio noise reduction
BSD 3-Clause "New" or "Revised" License
4.05k stars 895 forks source link

Handling of clipped input #166

Open Krzmbrzl opened 3 years ago

Krzmbrzl commented 3 years ago

In https://github.com/mumble-voip/mumble/issues/4391 we received reports of RNNoise leading to very distorted audio signals. After some further research we were able to trace the issue down to clipping input signals.

If such a clipping input is fed into RNNoise, the resulting audio is really badly distorted.

Idk what the best solution to this might be. A very simply solution could be to not perform any denoising, if the input is clipping as this seems to reliably worsen the situation significantly.

https://github.com/mumble-voip/mumble/issues/4391 also includes audio samples (especially https://github.com/mumble-voip/mumble/issues/4391#issuecomment-780056053)