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

22
LINES

< > BotCompany Repo | #1027430 // voiceRSS_silent - downloads & caches audio files

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5205L/36K).

static File voiceRSS_silent(S voice, S text) {
  text = voiceRSS_preprocess(text);
  ret voiceRSS_silent_preprocessed(voice, text);
}

static File voiceRSS_silent_preprocessed(S voice, S text) {
  File file = voiceRSS_file(voice, text);
  if (!file.exists()) {
    ifndef NoAWT
    O anim = miniLoadingAnim("Speaking...");
    endifndef
    try {
      S url = getSoundURLVoiceRSS(text, voice);
      loadBinaryPageToFile(url, file);
    } finally {
      ifndef NoAWT
      disposeWindow(anim);
      endifndef
    }
  }
  ret file;
}

Author comment

Began life as a copy of #1005209

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: #1027430
Snippet name: voiceRSS_silent - downloads & caches audio files
Eternal ID of this version: #1027430/4
Text MD5: b43441884e2bdefcfb6c5f849f757c7a
Transpilation MD5: eca9d08111713dc63032ff2cfc102759
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-19 21:52:58
Source code size: 560 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 276
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)