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

28
LINES

< > BotCompany Repo | #1005195 // Leo Respond To Keyword German (Android), no gfx

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

Libraryless. Click here for Pure Java version (2056L/15K/48K).

1  
!759
2  
3  
!include #1001279 // Leopold
4  
!include #1001293 // Emoticons
5  
6  
static S keyword = "spülmaschine";
7  
8  
p {
9  
  fastSynthesis = true;
10  
  showPicture = false; // Let us see the text output
11  
  leoMain();
12  
}
13  
14  
answer {
15  
  if (match(keyword, s))
16  
    ret "Du hast mich gerufen, Meister?";
17  
}
18  
19  
svoid recogTimeSettings(Intent intent) {
20  
  // 1 second minimum speech length
21  
  intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, 1000);
22  
  
23  
  // Stop listening after pause of 1 second
24  
  intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, 1000);
25  
  intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 1000);
26  
27  
28  
}

Author comment

Began life as a copy of #1005193

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: #1005195
Snippet name: Leo Respond To Keyword German (Android), no gfx
Eternal ID of this version: #1005195/1
Text MD5: 606254578d09820997efa9561db041a1
Transpilation MD5: fcca07403ed28744597edcd07051f00f
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-22 00:23:55
Source code size: 713 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 482
Referenced in: [show references]