Uses 911K of libraries. Click here for Pure Java version (6386L/32K).
!7 cmodule VoiceActionsOnSpeechLog > DynPrintLogAndEnabled { switchable bool active; LS list; start { dm_onUserUtterance(s -> dm_proposeAction(processInput(s)); } ProposedAction processInput(S s) null { if "speech log" ret ProposedAction("Activate", r { setField(active := true); setField(list := dm_speechLogSnapshot()); dm_say("Speech log has " + nLines(list)); }); if (!active) null; if "exit" ret ProposedAction("Exit", r { setFields(active := false, list := null); dm_say("Exiting speech log analysis module"); }); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027424 |
| Snippet name: | Voice Actions On Speech Log [dev.] |
| Eternal ID of this version: | #1027424/9 |
| Text MD5: | 789a7d1e933b4a1c80d9b2c046a2b05c |
| Transpilation MD5: | 962653f6059ac2664ef69b1c24a944d1 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-03-18 20:04:10 |
| Source code size: | 626 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 473 / 9960 |
| Version history: | 8 change(s) |
| Referenced in: | -