sphinx: changed a few redundant log messages and a printf to debug messages.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 5 Jun 2014 14:16:22 +0000 (17:16 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 5 Jun 2014 14:16:47 +0000 (17:16 +0300)
src/plugins/speech-to-text/sphinx/filter-buffer.c
src/plugins/speech-to-text/sphinx/utterance.c

index 4d1d557..93167b2 100644 (file)
@@ -223,7 +223,7 @@ void filter_buffer_utter(context_t *ctx, bool full_utterance)
         !(filtbuf = ctx->filtbuf))
         return;
 
-    printf("*** utter %d\n", filtbuf->len);
+    mrp_debug("utterance length %d samples", filtbuf->len);
 
     if (filtbuf->len > 0) {
         if (filtbuf->fdrec >= 0) {
index 5465546..c0d49a9 100644 (file)
@@ -325,20 +325,20 @@ static void print_utterance(context_t *ctx, srs_srec_utterance_t *utt)
     size_t i,j;
 
     if (ctx && (decset = ctx->decset) && (dec = decset->curdec)) {
-        mrp_log_info("*** %15s  (%.4lf) %zd candidates, length %u",
-                     utt->id, utt->score, utt->ncand, utt->length);
+        mrp_debug("utterance %15s (score %.4lf, length %u), %zd candidates",
+                  utt->id, utt->score, utt->length, utt->ncand);
 
         for (i = 0; (cand = utt->cands[i]) != NULL;  i++) {
-            mrp_log_info("  (%.4lf) ----------------------", cand->score);
+            mrp_debug("  (score %.4lf) ----------------------", cand->score);
 
             for (j = 0;  j < cand->ntoken;  j++) {
                 tkn = cand->tokens + j;
-                mrp_log_info("           %d - %d  %s",
-                             tkn->start, tkn->end, tkn->token);
+                mrp_debug("                   %d - %d  %s",
+                          tkn->start, tkn->end, tkn->token);
             }
         }
 
-        mrp_log_info("           ----------------------");
+        mrp_debug("                 ----------------------");
     }
 }