!7 static void wavToMP3_128k(File wav, File mp3) { javaLame_wavToMP3_mono(wav, mp3); } // reacts to new recording or file path on clipboard module WitAILastRecording > DynPrintLog { start { dm_onNewRecordingOrWAVOnClipboard(voidfunc(File f) { print("Analyzing " + f.getName()); fS text = witAI_recognizeWAV(f); flatInfoBox(text); swing { S info = "wit.ai english"; if (empty(text)) katze_userSaid(info, "?"); else { S corrected = dm_correctRecognizedSpeech(text); if (neq(corrected, text)) { print("Correcting " + quote(text) + " to " + quote(corrected)); vmBus_send('correctedRecognizedSpeech, text, corrected); } else print("Recognized: " + text); temp dm_generalMap_tempPut('topInputInfo, info); dm_setAIBarTextAndFire(or(corrected, text)); } } }); } }