!7 cmodule DeepSpeechLastRecording > 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()); fS text = deepspeech(f, /*+envVars*/ +useKnownPlaces); flatInfoBox(text); swing { S info = "DeepSpeech english"; vmBus_send speechRecognized_raw(litmap( module := module(), +info, +text, audioFile := f)); if (empty(text)) { //katze_userSaid(info, "?"); } else { temp dm_generalMap_tempPut('topInputInfo, info); dm_setAIBarTextAndFire(text); } } }); } }