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

6
LINES

< > BotCompany Repo | #1026338 // dm_onUserUtteranceWithoutMine - avoid reacting to my own utterings (endless loop)

JavaX fragment (include) [tags: use-pretranspiled]

Uses 408K of libraries. Click here for Pure Java version (12261L/85K).

1  
svoid dm_onUserUtteranceWithoutMine(IVF1<S> f) {
2  
  DynModule mod = dm_current_mandatory();
3  
  dm_ownResource(onSpeechRecognized_withoutMine(voidfunc(S s) {
4  
    dm_q(mod, r { callF(f, s) })
5  
  }));
6  
}

Author comment

Began life as a copy of #1025594

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: #1026338
Snippet name: dm_onUserUtteranceWithoutMine - avoid reacting to my own utterings (endless loop)
Eternal ID of this version: #1026338/3
Text MD5: 7a20ad6ada586c9ac2b8555e410beb70
Transpilation MD5: 126abc066376cb528e9c61a726cfbf6d
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-23 22:22:07
Source code size: 201 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 352
Version history: 2 change(s)
Referenced in: [show references]