// f : voidfunc(S) - gets only the utterance static TailFile onSpeechRecognized(fO f) { ret watchQuotedLog_future(speechRecognitionLog(), interval, voidfunc(S s) { s = trimSubstring(s, smartIndexOf(s, ']')); pcall(f, s); }); }