Libraryless. Click here for Pure Java version (5205L/36K).
1 | static File voiceRSS_silent(S voice, S text) { |
2 | text = voiceRSS_preprocess(text); |
3 | ret voiceRSS_silent_preprocessed(voice, text); |
4 | } |
5 | |
6 | static File voiceRSS_silent_preprocessed(S voice, S text) { |
7 | File file = voiceRSS_file(voice, text); |
8 | if (!file.exists()) { |
9 | ifndef NoAWT |
10 | O anim = miniLoadingAnim("Speaking..."); |
11 | endifndef |
12 | try { |
13 | S url = getSoundURLVoiceRSS(text, voice); |
14 | loadBinaryPageToFile(url, file); |
15 | } finally { |
16 | ifndef NoAWT |
17 | disposeWindow(anim); |
18 | endifndef |
19 | } |
20 | } |
21 | ret file; |
22 | } |
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: | 196 / 275 |
Version history: | 3 change(s) |
Referenced in: | [show references] |