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

12
LINES

< > BotCompany Repo | #1019365 // onSpeechRecognized_withoutMyUtterancesAndTyped

JavaX fragment (include)

1  
please include function onSpeechRecognized.
2  
3  
// f : voidfunc(S) - gets only the utterance
4  
static TailFile onSpeechRecognized_withoutMyUtterancesAndTyped(fO f) {
5  
  ret watchQuotedLog_future(speechRecognitionLog(), onSpeechRecognized_interval, voidfunc(S s) {
6  
    if (cic(squareBracketStuff(s), 'typed)) ret;
7  
    S heard = afterSquareBracketStuff(s);
8  
    long timestamp = parseFirstLong(s);
9  
    if (!isItMyUtterance(timestamp, heard).a)
10  
      pcallF(f, heard);
11  
  });
12  
}

Author comment

Began life as a copy of #1016794

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019365
Snippet name: onSpeechRecognized_withoutMyUtterancesAndTyped
Eternal ID of this version: #1019365/7
Text MD5: 68ec85b4dc6e48e01deea53c33db67c6
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-04 16:15:18
Source code size: 477 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 327
Version history: 6 change(s)
Referenced in: [show references]