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

11
LINES

< > BotCompany Repo | #1015151 // onUserUtterance - extended synonym of onSpeechRecognized

JavaX fragment (include)

// f : voidfunc(S) - gets only the utterance
static TailFile onUserUtterance(fO f) {
  ret onSpeechRecognized(f);
}

static void onUserUtterance(fS text, fO r) {
  onUserUtterance_addHandler(voidfunc(S s) {
    if (match(text, s))
      callF(r);
  });
}

Author comment

Began life as a copy of #1014810

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015151
Snippet name: onUserUtterance - extended synonym of onSpeechRecognized
Eternal ID of this version: #1015151/3
Text MD5: afa9102d145b011053fc4c968ba4f508
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-20 14:47:17
Source code size: 264 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 389
Version history: 2 change(s)
Referenced in: [show references]