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

9
LINES

< > BotCompany Repo | #1009577 // Hot Word Detection ["Computer!"] - requires PocketSphinx in path

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

Libraryless. Click here for Pure Java version (2844L/20K/67K).

!7

p {
  S keyphrase = "computer", threshold = "1e-50";
  S cmd = "pocketsphinx_continuous -inmic yes -keyphrase " + bashQuote(keyphrase) + " -kws_threshold " + threshold;
  backtickToConsole_lineBuf(cmd, voidfunc(S line) {
    print("Line read: " + quote(line));
  });
}

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: #1009577
Snippet name: Hot Word Detection ["Computer!"] - requires PocketSphinx in path
Eternal ID of this version: #1009577/1
Text MD5: 14b12c0a3b3a8d1ce7e414d8fc0d372b
Transpilation MD5: f0b0ff984641b83d0c7a7c9d157d2b81
Author: stefan
Category: javax / speech
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-08 17:15:57
Source code size: 280 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 553
Referenced in: [show references]