Warning: session_start(): open(/var/lib/php/sessions/sess_5tp86amrapqrqk7jvngmlibqls, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
please include function onSpeechRecognized.
static int onSpeechRecognized_withoutMyUtterances_magicInterval = 2000;
// f : voidfunc(S) - gets only the utterance
static TailFile onSpeechRecognized_withoutMyUtterances(fO f) {
ret watchQuotedLog_future(speechRecognitionLog(), onSpeechRecognized_interval, voidfunc(S s) {
S heard = afterSquareBracketStuff(s);
long timestamp = parseFirstLong(s);
Pair said = lastVoiceOutputEndBeforeTimestamp(timestamp);
if (said != null) {
S info = "this (delay=" + said.a + " ms): " + heard
+ (match(heard, said.b) ? "" : " (said: " + heard + ")");
if (said.a <= onSpeechRecognized_withoutMyUtterances_magicInterval) {
print("Assuming I said " + info);
ret;
} else
print("Assuming I did not say " + info);
}
pcallF(f, heard);
});
}