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

17
LINES

< > BotCompany Repo | #1009884 // Hot Word Detection using Continuous Recognition [kinda works]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 206K of libraries. Click here for Pure Java version (4224L/31K).

!7

sS hotWords = "computer|computer|the computer|the computers";

p {
  Class recognizer = hotwire(#1009816);
  //set(recognizer, startRecognition := true);
  set(recognizer, onUtterance := voidfunc(S utterance) {
    final new Matches m;
    if (matchStartMulti(hotWords, utterance, m)) thread {
      S rest = $1;
      infoBox(botAnswerWord() + " " + rest);
      blipAndWait();
    }
  });
  callMain(recognizer);
}

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: #1009884
Snippet name: Hot Word Detection using Continuous Recognition [kinda works]
Eternal ID of this version: #1009884/7
Text MD5: 79ec90a6e4c6f8306b56654090a3a1f0
Transpilation MD5: 50725e0fec3622a9975b1e27f512d04e
Author: stefan
Category: javax / speech
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-23 19:44:36
Source code size: 436 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 454 / 982
Version history: 6 change(s)
Referenced in: [show references]