[xiph-cvs] cvs commit: speex/libspeex denoise.c

Jean-Marc Valin jm at xiph.org
Wed May 21 15:05:38 PDT 2003



jm          03/05/21 18:05:38

  Modified:    libspeex denoise.c
  Log:
  made the VAD less sensitive

Revision  Changes    Path
1.12      +4 -3      speex/libspeex/denoise.c

Index: denoise.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/denoise.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- denoise.c	21 May 2003 21:20:25 -0000	1.11
+++ denoise.c	21 May 2003 22:05:37 -0000	1.12
@@ -392,21 +392,22 @@
       else
          p0=.02+.1*exp(-.2*(x-1.5));
       
+      p1 *= 2;
       /*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);
       
       st->speech_prob = p0/(p1+p0);
-      if (st->speech_prob>.5 || (st->last_speech < 15 && st->speech_prob>.2))
+      if (st->speech_prob>.5 || (st->last_speech < 10 && st->speech_prob>.25))
       {
          is_speech = 1;
          st->last_speech = 0;
       } else {
          st->last_speech++;
-         if (st->last_speech<15)
+         if (st->last_speech<10)
             is_speech = 1;
       }
-      /*fprintf (stderr, "%f ", st->speech_prob);*/
+      fprintf (stderr, "%f ", st->speech_prob);
    }
    if (mean_prior>1 && mean_post > 1)
    {

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list