Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1027424 // Voice Actions On Speech Log [dev.]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (6386L/32K).

1  
!7
2  
3  
cmodule VoiceActionsOnSpeechLog > DynPrintLogAndEnabled {
4  
  switchable bool active;
5  
  LS list;
6  
  
7  
  start {
8  
    dm_onUserUtterance(s -> dm_proposeAction(processInput(s));
9  
  }
10  
  
11  
  ProposedAction processInput(S s) null {
12  
    if "speech log" ret ProposedAction("Activate", r {
13  
      setField(active := true);
14  
      setField(list := dm_speechLogSnapshot());
15  
      dm_say("Speech log has " + nLines(list));
16  
    });
17  
18  
    if (!active) null;
19  
    
20  
    if "exit" ret ProposedAction("Exit", r {
21  
      setFields(active := false, list := null);
22  
      dm_say("Exiting speech log analysis module");
23  
    });
24  
  }
25  
}

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: 134 / 9551
Version history: 8 change(s)
Referenced in: [show references]