1 | static bool dm_say(O text) { |
2 | text = trim(strOrNull(text)); |
3 | if (empty(text)) true; // Successfully said nothing! |
4 | vmBus_send('saying, text); |
5 | if (isFalse(dm_callModuleOpt(dm_voiceMatrixModule(), 'isModuleEnabled, dm_current_mandatory_generic()))) |
6 | ret false with print("[quiet] " + text); |
7 | print("Saying: " + text); |
8 | O voiceOutput = dm_voiceOutputModule(); |
9 | dm_callModule(voiceOutput, 'say, text); |
10 | ret voiceOutput != null; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016786 |
Snippet name: | dm_say - speak! |
Eternal ID of this version: | #1016786/15 |
Text MD5: | 59fdca1b084187858e3dc0925d1dd314 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-03 02:48:50 |
Source code size: | 447 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 551 / 759 |
Version history: | 14 change(s) |
Referenced in: | [show references] |