static int cereproc_maxChars = 1000; static File cereproc(fS voice, S text) { text = cereproc_preprocess(text); if (empty(text)) null; print("[" + voice + "] " + text); File file = cereproc_silent_preprocessed(voice, text); if (file != null) { logStructureWithDate(cereprocLog(), litorderedmap(action := "Begin talking", +voice, +text)); fS _text = text; mechAppendQ.add(r { appendToMechList_noUniq("Voice Log", "[" + localDateWithMilliseconds() + ", " + voice + "] " + newLinesToSpaces(_text) }); playMp3(file); logStructureWithDate(cereprocLog(), litorderedmap(action := "End talking", +voice, +text)); } ret file; }