!7 module SpeechRecogConfirmation > DynPrintLogAndButtons { start { onSpeechRecognized_withoutMyUtterancesAndTyped(voidfunc(fS s) { print(); print("I heard: " + s); print("Did you say that?"); showButtons("Yes", r { log(s, 'yes) }, "No", r { log(s, 'no) }); }); } void log(S heard, S answer) { print("> " + upper(answer)); logStructure(programLogFile(), litorderedmap(+heard, +answer)); hideButtons(); } }