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).

!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  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: 427 / 18509
Version history: 11 change(s)
Referenced in: #1027056 - Send Speech Input To Instances Connector [Test Bridge Module for Raspi -> phone -> headset]