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

13
LINES

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

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

Uses 788K of libraries. Click here for Pure Java version (5958L/30K).

!7

cmodule RepeatSpeechInput > DynPrintLogAndEnabled {
  transient TimedCache<S> last = new(5.0);
  
  start {
    dm_onUserUtterance(s -> {
      ret if !enabled || emptyOrEqAny(s, last!, "?");
      last.set(s);
      dm_say(s);
    });
  }
}

download  show line numbers  debug dex   

Travelled to 7 computer(s): cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1019682
Snippet name: Repeat Every Speech Input
Eternal ID of this version: #1019682/10
Text MD5: 16ade36a9cbd59b4ecfaf1335e41b5c6
Transpilation MD5: a1ed3fe8265df571bb194c51865a2856
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: 2019-10-07 12:30:17
Source code size: 254 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 95 / 1447
Version history: 9 change(s)
Referenced in: [show references]