Skip to content

Commit e16e100

Browse files
committed
features #15
1 parent e6b64d3 commit e16e100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/denoise.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ int main(int argc, char **argv) {
562562
float vad=0;
563563
float vad_prob;
564564
float E=0;
565-
if (++gain_change_count > 101*300) {
565+
if (++gain_change_count > 2821) {
566566
speech_gain = pow(10., (-40+(rand()%60))/20.);
567567
noise_gain = pow(10., (-30+(rand()%50))/20.);
568568
if (rand()%10==0) noise_gain = 0;
569569
noise_gain *= speech_gain;
570-
if (rand()%4==0) speech_gain = 0;
570+
if (rand()%10==0) speech_gain = 0;
571571
gain_change_count = 0;
572572
rand_resp(a_noise, b_noise);
573573
rand_resp(a_sig, b_sig);

0 commit comments

Comments
 (0)