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

16
LINES

< > BotCompany Repo | #1027041 // dm_rawSpeechRecognized

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

Transpiled version (10179L) is out of date.

svoid dm_rawSpeechRecognized(DynModule module, S text, S info, File audioFile) {
  vmBus_send speechRecognized_raw(litmap(
    +module, +info, +text, +audioFile));
    
  // honor global flag when there is a correlator
  if (vmBus_anyTrue dontApplyRecognizedSpeech()) ret;
  
  if (dm_recognizedSpeechIsProbablyMyOwnUtterance(text)) ret;
  
  if (empty(text)) {
    //katze_userSaid(info, "?");
  } else swing {
    temp dm_generalMap_tempPut('topInputInfo, info);
    dm_setAIBarTextAndFire(text);
  }
}

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: #1027041
Snippet name: dm_rawSpeechRecognized
Eternal ID of this version: #1027041/6
Text MD5: 93488b87a4ec3a8c5509b0db469d40fe
Author: stefan
Category: javax / audio recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-23 14:09:53
Source code size: 519 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 257 / 359
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)