static int cereproc_maxChars = 1000; static File cereproc(S 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)); playMp3(file); logStructureWithDate(cereprocLog(), litorderedmap(action := "End talking", +voice, +text)); } ret file; }