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

14
LINES

< > BotCompany Repo | #1019682 // Repeat Every Speech Input

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

Uses 1319K of libraries. Click here for Pure Java version (8571L/43K).

1  
!7
2  
3  
cmodule RepeatSpeechInput > DynPrintLogAndEnabled {
4  
  transient TimedCache<S> last = new(5.0);
5  
  
6  
  start {
7  
    dm_onUserUtteranceWithoutMine(s -> {
8  
      ret if !enabled || emptyOrEqAny(s, last!, "?");
9  
      last.set(s);
10  
      print("Repeating: " + s);
11  
      dm_say(s);
12  
    });
13  
  }
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1019682
Snippet name: Repeat Every Speech Input
Eternal ID of this version: #1019682/12
Text MD5: 23d31dc05c1615e910bc9e9f31d3c04f
Transpilation MD5: af85c409e65541c253520430026f973d
Author: stefan
Category: javax / stefan's os / speexh
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-07 23:02:51
Source code size: 301 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 311 / 18386
Version history: 11 change(s)
Referenced in: [show references]