1 | static Pair<Long, S> lastVoiceOutputEndBeforeTimestamp(long timestamp) null on exception {
|
2 | temp ReversedLinesFileReader reader = reversedLinesFileReader(cereprocLog()); |
3 | S s; |
4 | while ((s = reader.readLine()) != null) {
|
5 | if (!isProperlyQuoted(s)) continue; |
6 | s = unquote(s); |
7 | Map map = safeUnstructMap(dropUntilSpace(s)); |
8 | if (!eq(map.get("action"), "End talking")) continue;
|
9 | long timestamp2 = parseLong(beforeSpace(s)); |
10 | if (timestamp2 > timestamp) continue; |
11 | S textSaid = (S) map.get("text");
|
12 | ret pair(timestamp-timestamp2, textSaid); |
13 | } |
14 | null; |
15 | } |
Began life as a copy of #1016789
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016793 |
| Snippet name: | lastVoiceOutputEndBeforeTimestamp |
| Eternal ID of this version: | #1016793/7 |
| Text MD5: | ece587284b0d10dba9d19cb991ee0eea |
| Author: | stefan |
| Category: | javax / speech |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-03 16:55:58 |
| Source code size: | 591 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 605 / 651 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |