1 | please include function kevin. |
2 | |
3 | static void kevin_wait() ctex { |
4 | //kevin_synth.waitEngineState(Synthesizer.QUEUE_EMPTY); |
5 | //print("Kevin waiting."); |
6 | long weird = 0; //, start = sysNow(); |
7 | repeat with ms sleep 50 { |
8 | //if (sysNow() > start+60*1000) { print("Kevin time-out."); break; } |
9 | long x = kevin_synth.getEngineState(); |
10 | if (x == 66052) break; // normal end |
11 | else if (x == 131588 || x == 516) continue; // still speaking? might wanna look up the actual definition |
12 | else if (weird == 0) print("Weird Kevin state: " + (weird = x)); |
13 | } |
14 | //print("Kevin done."); |
15 | } |
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: | 575 / 651 |
Version history: | 9 change(s) |
Referenced in: | [show references] |