Libraryless. Click here for Pure Java version (14842L/104K).
!7 set flag NoAI. sclass Katze extends DynModule { transient O catModule; transient S imageID = #1101205; JComponent visualize() { ret withBottomMargin(centerAndSouth( centerPart(), buttons())); } JComponent centerPart() { ret jimage(imageID); } JComponent buttons() { ret vstack2( withMargin(jcenteredbutton("Start Listening", rThread startListening)), jcenteredbutton("Stop Listening", rThread stopListening)); } bool loadCat() { if (catModule == null && !hasBot("Chrome Speech.")) ret true with actuallyLoadCat(); false; } void actuallyLoadCat { catModule = runDependent(#1013936); } void listenJustOnce { print('listenJustOnce); temp enter(); loadCat(); send("Chrome Speech.", "just once"); } void startListening { print('startListening); temp enter(); if (!loadCat()) send("Chrome Speech.", "start recognition"); } void stopListening { temp enter(); sendOpt("Chrome Speech.", "stop recognition"); } start { dm_putRecognizedSpeechInAIBar(); } void cleanMeUp_katze { cleanUp(catModule); catModule = null; } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016461 |
Snippet name: | Katze [Dyn Module] |
Eternal ID of this version: | #1016461/34 |
Text MD5: | 7a74ee8988e87be940714af032e40020 |
Transpilation MD5: | 0e6842575f393bff9b71ad1cc3aef2f6 |
Author: | stefan |
Category: | javax / speech |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-05 13:48:03 |
Source code size: | 1243 bytes / 59 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 620 / 15550 |
Version history: | 33 change(s) |
Referenced in: | [show references] |