!7 static TextView tv, tvStatus; please include function aContinuousEnglishRecognition. p { makeBot("Recognizer."); makeMyselfAware(); androidUI(r { tv = aTextView(); tvStatus = aTextView("Preparing..."); androidShow(aNorthAndCenter(tvStatus, tv)); }); new ContinuousEnglishRecognition rec; rec.onSpeech = f onSpeech; rec.onReady = r { aSetText(tvStatus, "Listening.") }; rec.onUnready = r { aSetText(tvStatus, "Hold on...") }; rec.start(); } sS last = ""; static long time; static void onSpeech(L l) { S s = first(l), ss = s; if (startsWith(s, last)) ss = dropPrefixTrim(last, s); last = s; time = now(); print("> " + ss); if (nempty(ss)) aSetText(tv, ss); } answer { if "text" ret now() + ": " + last; }