!7 cmodule VoiceActionsOnSpeechLog > DynPrintLogAndEnabled { switchable bool active; LS list; start { dm_onUserUtterance(s -> dm_proposeAction(processInput(s)); } ProposedAction processInput(S s) null { if "speech log" ret ProposedAction("Activate", r { setField(active := true); setField(list := dm_speechLogSnapshot()); dm_say("Speech log has " + nLines(list)); }); if (!active) null; if "exit" ret ProposedAction("Exit", r { setFields(active := false, list := null); dm_say("Exiting speech log analysis module"); }); } }