Update of /cvsroot/playerstage/code/player/server/drivers/speech/recognition
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10946/server/drivers/speech/recognition
Modified Files:
sphinx2.cc
Log Message:
applied Toby's patch to replace fixed-size arrays
Index: sphinx2.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/speech/recognition/sphinx2.cc,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** sphinx2.cc 23 Aug 2007 19:58:48 -0000 1.13
--- sphinx2.cc 1 Nov 2007 22:16:23 -0000 1.14
***************
*** 399,406 ****
}
! strncpy(data.text, hypothesis, PLAYER_SPEECH_RECOGNITION_TEXT_LEN);
!
! // printf ("%d: %s\n", frames, data.text); fflush (stdout);
! data.text[strlen(data.text)]='\0';
data.text_count = strlen(data.text)+1;
--- 399,403 ----
}
! data.text = hypothesis;
data.text_count = strlen(data.text)+1;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit