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

6
LINES

< > BotCompany Repo | #1015156 // onUserUtterance_plusLastN

JavaX fragment (include)

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

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: 454 / 511
Version history: 4 change(s)
Referenced in: [show references]