!7 cmodule SendAIBarInputToSpeechLog > DynPrintLogAndEnabled { start { dm_onTopInput_q(voidfunc(S s) { if (enabled) { S info = dm_getTopInputInfo(); if (!containsWord2(info, "typed")) ret; print("Typed (" + info + "): " + s); logQuoted(speechRecognitionLog(), now() + " [User typed] " + s); } }); } }