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).

1  
!7
2  
3  
sS hotWords = "computer|computer|the computer|the computers";
4  
5  
p {
6  
  Class recognizer = hotwire(#1009816);
7  
  //set(recognizer, startRecognition := true);
8  
  set(recognizer, onUtterance := voidfunc(S utterance) {
9  
    final new Matches m;
10  
    if (matchStartMulti(hotWords, utterance, m)) thread {
11  
      S rest = $1;
12  
      infoBox(botAnswerWord() + " " + rest);
13  
      blipAndWait();
14  
    }
15  
  });
16  
  callMain(recognizer);
17  
}

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: 463 / 998
Version history: 6 change(s)
Referenced in: [show references]