please include function kevin. static void kevin_wait() ctex { //kevin_synth.waitEngineState(Synthesizer.QUEUE_EMPTY); //print("Kevin waiting."); long weird = 0; //, start = sysNow(); repeat with ms sleep 50 { //if (sysNow() > start+60*1000) { print("Kevin time-out."); break; } long x = kevin_synth.getEngineState(); if (x == 66052) break; // normal end else if (x == 131588 || x == 516) continue; // still speaking? might wanna look up the actual definition else if (weird == 0) print("Weird Kevin state: " + (weird = x)); } //print("Kevin done."); }
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: | #1009556 |
Snippet name: | kevin_wait - wait for Kevin to finish speaking |
Eternal ID of this version: | #1009556/10 |
Text MD5: | f5247dbf15aca08e543ba99134dafcc6 |
Author: | stefan |
Category: | javax / speech |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-07 20:32:50 |
Source code size: | 599 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 573 / 648 |
Version history: | 9 change(s) |
Referenced in: | [show references] |