Uses 911K of libraries. Click here for Pure Java version (6054L/30K).
1 | !7 |
2 | |
3 | cmodule RepeatSpeechInput > DynPrintLogAndEnabled {
|
4 | transient TimedCache<S> last = new(5.0); |
5 | |
6 | start {
|
7 | dm_onUserUtterance(s -> {
|
8 | ret if !enabled || emptyOrEqAny(s, last!, "?"); |
9 | last.set(s); |
10 | print("Repeating: " + s);
|
11 | dm_call instancesConnector('sendToChannel, "voiceOutput", s);
|
12 | }); |
13 | } |
14 | } |
Began life as a copy of #1019682
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: | #1027056 |
| Snippet name: | Send Speech Input To Instances Connector [Test Bridge Module for Raspi -> phone -> headset] |
| Eternal ID of this version: | #1027056/3 |
| Text MD5: | 7778c40be90e1dc84f7c8cbf35cd84bf |
| Transpilation MD5: | c85f6d9a113392f5df561fb9b923986a |
| Author: | stefan |
| Category: | javax / stefan's os / speech |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-16 15:26:15 |
| Source code size: | 341 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 538 / 1170 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |