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