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

6
LINES

< > BotCompany Repo | #1015156 // onUserUtterance_plusLastN

JavaX fragment (include)

// f : voidfunc(S) - gets only the utterance
static TailFile onUserUtterance_plusLastN(int n, fO f) {
  for (S s : lastNLines(n, speechRecognitionLog())) // race condition
    callF(f, afterSquareBracketStuff(unquote(s)));
  ret onUserUtterance(f);
}

Author comment

Began life as a copy of #1015151

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: #1015156
Snippet name: onUserUtterance_plusLastN
Eternal ID of this version: #1015156/5
Text MD5: 70d8c5447ffb8dd4f8d9f84c1ca1247c
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 12:52:27
Source code size: 255 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 440
Version history: 4 change(s)
Referenced in: [show references]