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 1202K of libraries. Click here for Pure Java version (8571L/43K).

!7

cmodule RepeatSpeechInput > DynPrintLogAndEnabled {
  transient TimedCache<S> last = new(5.0);
  
  start {
    dm_onUserUtteranceWithoutMine(s -> {
      ret if !enabled || emptyOrEqAny(s, last!, "?");
      last.set(s);
      print("Repeating: " + 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/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: 122 / 5029
Version history: 11 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019682 & http://1019682.tinybrain.de