Uses 1319K of libraries. Click here for Pure Java version (10771L/55K).
1 | !7 |
2 | |
3 | cmodule RepeatSpeechInputWithSwitcheroo > DynPrintLogAndEnabled {
|
4 | transient TimedCache<S> last = new(5.0); |
5 | |
6 | start {
|
7 | dm_onUserUtteranceWithoutMine(s -> {
|
8 | ret if !enabled || emptyOrEqAny(s, last!, "?"); |
9 | last.set(s); |
10 | S s2 = switcheroo(s); |
11 | dm_say(s2); |
12 | }); |
13 | } |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027384 |
| Snippet name: | Repeat Every Speech Input With Switcheroo |
| Eternal ID of this version: | #1027384/1 |
| Text MD5: | 0e4f1c87584bed9987c5e02294808a16 |
| Transpilation MD5: | 9434dc92e3aa8dac50ef6c744cf36d3a |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-03-16 15:19:11 |
| Source code size: | 310 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 434 / 10679 |
| Referenced in: | [show references] |