!7 sclass Katze extends DynModule { transient O recognizer; JComponent visualize() { ret centerAndSouth( jimage(#1101205), jcenteredbuttons( "Start Listening", rThread startListening, "Stop Listening", rThread stopListening, )); } void startListening { temp enter(); if (recognizer == null && !hasBot("Chrome Speech.")) recognizer = runDependent(#1013936); else send("Chrome Speech.", "start recognition"); } void stopListening { temp enter(); sendOpt("Chrome Speech.", "stop recognition"); } void start { onSpeechRecognized(voidfunc(S s) { temp enter(); //callOpt(dm_moduleOfType('Hello), 'setText, s); setText((JTextComponent) getCreator('tfTopInput), s); }); } }