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

14
LINES

< > BotCompany Repo | #1027041 - dm_rawSpeechRecognized

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

Libraryless. Click here for Pure Java version (10132L/72K).

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 (empty(text)) {
    //katze_userSaid(info, "?");
  } else swing {
    temp dm_generalMap_tempPut('topInputInfo, info);
    dm_setAIBarTextAndFire(text);
  }
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027041
Snippet name: dm_rawSpeechRecognized
Eternal ID of this version: #1027041/4
Text MD5: 4f34be061f4519fea6522260577a9f9d
Transpilation MD5: b02701bd7a7fdd33a981c0308dc297f3
Author: stefan
Category: javax / audio recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-13 14:02:12
Source code size: 452 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 11 / 33
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1027041 & http://1027041.tinybrain.de