lucianodato / speech-denoiser

A speech denoise lv2 plugin based on RNNoise library
GNU Lesser General Public License v3.0
287 stars 29 forks source link

Use less CPU when soft-bypassing #4

Closed FrnchFrgg closed 6 years ago

FrnchFrgg commented 6 years ago

Currently, soft-bypassing only sets the wet factor to 0, still performing the same denoising work. Since RNNoise is kind of expensive (my computer cannot run it reliably at 64 frames/period, it uses more than 90% dsp), bypassing it should disable the noise computations (maybe still keeping the buffer full to be able to feed RNNoise as soon as the wet_dry variable is > 0).

A workaround currently is to remove completely the plugin, which is usable because it has no parameter (yet?).

lucianodato commented 6 years ago

Right. That's an easy fix. I will fix it ASAP. Unfortunately rnnoise api is not yet finished so I can't provide any parameter to configure.

lucianodato commented 6 years ago

Should be good now. Feel free to close it if is good in your system.

lucianodato commented 6 years ago

I believe that this is now fixed. Tested with my system only. If this doesn't work in yours please reopen it.