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

6
LINES

< > BotCompany Repo | #1026996 // gttsCLI [use gtts-cli if installed]

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

Libraryless. Click here for Pure Java version (3797L/26K).

// language = de, en, en-au, en-us, ...
static File gttsCLI(S text, S language, File mp3File) {
  assertTrue("ggts-cli not installed", hasGttsCLI());
  backtick("gtts-cli " + platformQuote(text) + " --lang " + pqO(language) + " --nocheck --output " + pqO(mp3File);
  ret mp3File;
}

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: #1026996
Snippet name: gttsCLI [use gtts-cli if installed]
Eternal ID of this version: #1026996/3
Text MD5: 07d651ea2aa5ca71175ce31a6cb77ad0
Transpilation MD5: aec91fe0601b6b75ce37889279e37624
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-06 13:32:03
Source code size: 286 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 260
Version history: 2 change(s)
Referenced in: [show references]