Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1016786 // dm_say - speak!

JavaX fragment (include)

static bool dm_say(O text) {
  text = trim(strOrNull(text));
  if (empty(text)) true; // Successfully said nothing!
  vmBus_send('saying, text);
  if (isFalse(dm_callModuleOpt(dm_voiceMatrixModule(), 'isModuleEnabled, dm_current_mandatory_generic())))
    ret false with print("[quiet] " + text);
  print("Saying: " + text);
  O voiceOutput = dm_voiceOutputModule();
  dm_callModule(voiceOutput, 'say, text);
  ret voiceOutput != null;
}

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: 550 / 758
Version history: 14 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1016983 - dm_proposeVoiceOutput
#1017864 - dm_sayInEnglish