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

23
LINES

< > BotCompany Repo | #1005197 // Leo Test If Recognition Parameters Work At All - "minium length" doesn't :(

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

Transpiled version (2041L) is out of date.

!759

!include #1001279 // Leopold
!include #1001293 // Emoticons
!include #1005191 // Logic (repeat input)

p {
  noSpeech = true; // Just recognition, don't talk
  showPicture = false; // Let us see the text output
  leoMain();
}

svoid recogTimeSettings(Intent intent) {
  print("setting speech params");
  // 60 second minimum speech length
  intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, 60000);
  
  // Stop listening after pause of 1 second
  //intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, 1000);
  //intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 1000);


}

Author comment

Began life as a copy of #1005194

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pnmttuucjkfb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1005197
Snippet name: Leo Test If Recognition Parameters Work At All - "minium length" doesn't :(
Eternal ID of this version: #1005197/1
Text MD5: df5f3f2abf295d394302ad2b8fb4aa4b
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-22 00:35:36
Source code size: 701 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 499 / 529
Referenced in: