oops...
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 21 May 2003 22:16:39 +0000 (22:16 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 21 May 2003 22:16:39 +0000 (22:16 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@4745 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/denoise.c

index a201561..18a2d54 100644 (file)
@@ -392,7 +392,7 @@ int speex_denoise(SpeexDenoiseState *st, float *x)
       else
          p0=.02+.1*exp(-.2*(x-1.5));
       
-      p1 *= 2;
+      p1 *= 1.0;
       /*fprintf (stderr, "%f %f ", p0, p1);*/
       p0 *= .99*st->speech_prob + .01*(1-st->speech_prob);
       p1 *= .01*st->speech_prob + .99*(1-st->speech_prob);
@@ -407,11 +407,7 @@ int speex_denoise(SpeexDenoiseState *st, float *x)
          if (st->last_speech<10)
             is_speech = 1;
       }
-      fprintf (stderr, "%f ", st->speech_prob);
-   }
-   if (mean_prior>1 && mean_post > 1)
-   {
-      is_speech=1;
+      /*fprintf (stderr, "%f ", st->speech_prob);*/
    }
 
    if (st->consec_noise>=3)