Warning: session_start(): open(/var/lib/php/sessions/sess_5378g209m45kqm9a6td585epgj, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass Entry {
S fullLine, time, text, comments;
}
cmodule SpeechLogTable > DynObjectTable {
start {
dontPersist();
addCountToName();
itemToMap = func(Entry a) -> Map { humanizeKeys(objectToMapExcept(a, 'fullLine)) };
setData(map(func(S line) -> Entry { makeEntry(line) },
scanLog(speechRecognitionLog())));
onSpeechRecognized_raw(voidfunc(S line) { addAndScrollDown(makeEntry(line)) });
}
Entry makeEntry(S line) {
ret nu(Entry,
fullLine := line,
text := speechRecognitionLog_extractUtterance(line),
time := localDateWithMillisecondsIfReasonable(parseLeadingLong(line)));
}
L getList() { ret syncCloneList(data); }
L getTexts() { ret syncCollect(data, 'text); }
}