!7 cmodule KaldiLastRecording > DynPrintLogAndEnabled { //switchable S envVars; switchable bool useKnownPlaces; start { dm_requireQuickAudioRecord(); dm_onNewRecording_q/*OrWAVOnClipboard*/(voidfunc(File f) enter { if (!enabled) ret; print("Analyzing " + f.getName()); S full = trim(vosk(f, /*+envVars*/ +useKnownPlaces)); print("Got " + nLines(full)); fS json = lastLine(full); if (empty(json)) ret; S text = cast jsonDecodeMap(json).get('text); flatInfoBox(text); swing { S info = "vosk english"; if (empty(text)) { //katze_userSaid(info, "?"); } else { temp dm_generalMap_tempPut('topInputInfo, info); dm_setAIBarTextAndFire(text); } } }); } }