speech-recognition: make sure we flush the full buffer in case we want to give up.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:43:57 +0000 (16:43 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:57:53 +0000 (16:57 +0300)
src/daemon/recognizer.c

index 1ea8df9..e1fe54e 100644 (file)
@@ -407,7 +407,8 @@ static int srec_notify_cb(srs_srec_utterance_t *utt, void *notify_data)
         }
     }
 
-    dis = find_disamb(srec->srs, SRS_DEFAULT_DISAMBIGUATOR);
+    flush = SRS_SREC_FLUSH_ALL;
+    dis   = find_disamb(srec->srs, SRS_DEFAULT_DISAMBIGUATOR);
 
     if (dis != NULL) {
         if (srec->result == NULL) {