[Julius-cvs 788] CVS update: julius4/libjulius/src

アーカイブの一覧に戻る

sumom****@users***** sumom****@users*****
2012年 10月 1日 (月) 13:23:21 JST


Index: julius4/libjulius/src/realtime-1stpass.c
diff -u julius4/libjulius/src/realtime-1stpass.c:1.9 julius4/libjulius/src/realtime-1stpass.c:1.10
--- julius4/libjulius/src/realtime-1stpass.c:1.9	Fri Jul 27 17:44:49 2012
+++ julius4/libjulius/src/realtime-1stpass.c	Mon Oct  1 13:23:21 2012
@@ -111,7 +111,7 @@
  * @author Akinobu Lee
  * @date   Tue Aug 23 11:44:14 2005
  *
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
  * 
  */
 /*
@@ -1161,6 +1161,12 @@
   /* loop until all data has been flushed */
   while (1) {
 
+    /* check frame overflow */
+    for (mfcc = recog->mfcclist; mfcc; mfcc = mfcc->next) {
+      if (! mfcc->valid) continue;
+      if (mfcc->f >= r->maxframelen) mfcc->valid = FALSE;
+    }
+
     /* if all mfcc became invalid, exit loop here */
     ok_p = FALSE;
     for (mfcc = recog->mfcclist; mfcc; mfcc = mfcc->next) {
@@ -1321,7 +1327,6 @@
     for (mfcc = recog->mfcclist; mfcc; mfcc = mfcc->next) {
       if (! mfcc->valid) continue;
       mfcc->f++;
-      if (mfcc->f > r->maxframelen) mfcc->valid = FALSE;
     }
   }
 



Julius-cvs メーリングリストの案内
アーカイブの一覧に戻る