[Julius-cvs 704] CVS update: julius4/libsent/src/wav2mfcc

Back to archive index

sumom****@users***** sumom****@users*****
2011年 7月 28日 (木) 16:07:48 JST


Index: julius4/libsent/src/wav2mfcc/wav2mfcc-buffer.c
diff -u julius4/libsent/src/wav2mfcc/wav2mfcc-buffer.c:1.5 julius4/libsent/src/wav2mfcc/wav2mfcc-buffer.c:1.6
--- julius4/libsent/src/wav2mfcc/wav2mfcc-buffer.c:1.5	Tue Oct 27 14:06:25 2009
+++ julius4/libsent/src/wav2mfcc/wav2mfcc-buffer.c	Thu Jul 28 16:07:48 2011
@@ -24,7 +24,7 @@
  * @author Akinobu LEE
  * @date   Thu Feb 17 17:43:35 2005
  *
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
  * 
  */
 
@@ -94,7 +94,7 @@
   if (para->acc) Accel(mfcc, frame_num, para);
 
   /* Cepstrum Mean and/or Variance Normalization */
-  if (para->cmn && ! para->cvn) CMN(mfcc, frame_num, para->mfcc_dim);
+  if (para->cmn && ! para->cvn) CMN(mfcc, frame_num, para->mfcc_dim + (para->c0 ? 1 : 0));
   else if (para->cmn || para->cvn) MVN(mfcc, frame_num, para);
 
   return(frame_num);
@@ -252,7 +252,7 @@
   float x;
   int basedim;
 
-  basedim = para->mfcc_dim; // + (para->c0 ? 1 : 0);
+  basedim = para->mfcc_dim + (para->c0 ? 1 : 0);
 
   mfcc_mean = (float *)mycalloc(para->veclen, sizeof(float));
   if (para->cvn) mfcc_sd = (float *)mycalloc(para->veclen, sizeof(float));
Index: julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c
diff -u julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.6 julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.7
--- julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.6	Fri Apr 29 14:09:20 2011
+++ julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c	Thu Jul 28 16:07:48 2011
@@ -20,7 +20,7 @@
  * @author Akinobu LEE
  * @date   Thu Feb 17 18:12:30 2005
  *
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
  * 
  */
 /*
@@ -253,7 +253,7 @@
   c = (CMNWork *)mymalloc(sizeof(CMNWork));
 
   c->cweight = weight;
-  c->mfcc_dim = para->mfcc_dim; // + (para->c0 ? 1 : 0);
+  c->mfcc_dim = para->mfcc_dim + (para->c0 ? 1 : 0);
   c->veclen = para->veclen;
   c->mean = para->cmn ? TRUE : FALSE;
   c->var = para->cvn ? TRUE : FALSE;



Julius-cvs メーリングリストの案内
Back to archive index