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 && timestamp-said.a <= onSpeechRecognized_withoutMyUtterances_magicInterval) { print("Assuming I said this (delay=" + (timestamp-said.a) + " ms): " + said.b + " => " + heard); ret; } pcallF(f, heard); }); }