Uses 408K of libraries. Click here for Pure Java version (16126L/113K).
1 | !7 |
2 | |
3 | sclass ProduceStandardAnswers > DynPrintLog { |
4 | void start { |
5 | onSpeechRecognized_notMine(voidfunc(S s) { |
6 | //if (!ai_shouldAnswerAtLeastSometimes()) ret; |
7 | L<S> answers = startingWithICTrim_drop("[standard answer]", |
8 | generalDefinition_texts_nlMatch(s)); |
9 | S out = dropGlobalID(random(answers)); |
10 | //dm_say(out); |
11 | dm_proposeVoiceOutput(out); |
12 | }); |
13 | } |
14 | } |
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: | #1016956 |
Snippet name: | Produce Standard Answers |
Eternal ID of this version: | #1016956/10 |
Text MD5: | 9af6b892035cf3c74ec632abe933f858 |
Transpilation MD5: | efadde2ec2cd04bc65793f7efe35d17a |
Author: | stefan |
Category: | javax / speech |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-11 13:44:50 |
Source code size: | 402 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 6940 |
Version history: | 9 change(s) |
Referenced in: | [show references] |