Libraryless. Click here for Pure Java version (18883L/137K).
!7 sclass Entry { S fullLine, time, text, comments; } module SpeechLogTable > DynObjectTable<Entry> { start { debug = true; 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)) }); } afterVisualize { onComponentFirstShow(table, r scrollDown); } Entry makeEntry(S line) { ret nu(Entry, fullLine := line, text := speechRecognitionLog_extractUtterance(line), time := localDateWithMillisecondsIfReasonable(parseLeadingLong(line))); } L<Entry> getList() { ret syncCloneList(data); } L<S> getTexts() { ret syncCollect(data, 'text); } }
Began life as a copy of #1016760
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1017331 |
Snippet name: | Full Speech Log As Table [Dyn Module] |
Eternal ID of this version: | #1017331/29 |
Text MD5: | a247d17839be1a16eeb5e8c0ee5a9d45 |
Transpilation MD5: | bf4333ae6a6f3825bc8b15b93929b322 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-23 20:23:00 |
Source code size: | 868 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 469 / 2907 |
Version history: | 28 change(s) |
Referenced in: | [show references] |