We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b64d3 commit e16e100Copy full SHA for e16e100
src/denoise.c
@@ -562,12 +562,12 @@ int main(int argc, char **argv) {
562
float vad=0;
563
float vad_prob;
564
float E=0;
565
- if (++gain_change_count > 101*300) {
+ if (++gain_change_count > 2821) {
566
speech_gain = pow(10., (-40+(rand()%60))/20.);
567
noise_gain = pow(10., (-30+(rand()%50))/20.);
568
if (rand()%10==0) noise_gain = 0;
569
noise_gain *= speech_gain;
570
- if (rand()%4==0) speech_gain = 0;
+ if (rand()%10==0) speech_gain = 0;
571
gain_change_count = 0;
572
rand_resp(a_noise, b_noise);
573
rand_resp(a_sig, b_sig);
0 commit comments