[RavenclawDev 303] [1983] Agents/MultiDecoder/Audio_Server/main.cpp: This modification supports the current sourceforge sphinx2, whose feature extractor now returns the number of frames.

tk@edam.speech.cs.cmu.edu tk at edam.speech.cs.cmu.edu
Fri Aug 10 12:26:28 EDT 2007


An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070810/f1af8ca7/attachment.html
-------------- next part --------------
Modified: Agents/MultiDecoder/Audio_Server/main.cpp
===================================================================
--- Agents/MultiDecoder/Audio_Server/main.cpp	2007-08-10 08:11:57 UTC (rev 1982)
+++ Agents/MultiDecoder/Audio_Server/main.cpp	2007-08-10 16:26:27 UTC (rev 1983)
@@ -1275,9 +1275,8 @@
 
 				/* ignore the truncation part */
 				int k;
-				//if ((k = fe_raw2cep (srvcb->buf, srvcb->n_rd / sizeof(short), mfcbuf + n_rawfr)) < 0)
-				//	fprintf(stderr, "Couldn't calculate MFCs\n");
-			    if ((k = fe_process_utt (fe, srvcb->buf, srvcb->n_rd / sizeof(short), mfcbuf + n_rawfr)) < 0)
+                                int32 nframes;                    
+			        if ((k = fe_process_utt (fe, srvcb->buf, srvcb->n_rd / sizeof(short), mfcbuf + n_rawfr, &nframes)) < 0)
 					Log(STD_STREAM, "Couldn't calculate MFCs");
 
 				if (mfcfp && (k > 0))
@@ -1354,7 +1353,8 @@
 
 				/* ignore the truncation part */
 				int k;
-			    if ((k = fe_process_utt (fe, srvcb->buf, srvcb->n_rd / sizeof(short), mfcbuf + n_rawfr)) < 0)
+                                int32 nframes;
+			        if ((k = fe_process_utt (fe, srvcb->buf, srvcb->n_rd / sizeof(short), mfcbuf + n_rawfr, &nframes)) < 0)
 					Log( ERR_STREAM, "Couldn't calculate MFCs");
 
 				if (mfcfp && (k > 0))


More information about the Ravenclaw-developers mailing list