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

22
LINES

< > BotCompany Repo | #1009639 // maryTTS_init

JavaX fragment (include)

lib 1009633 // MaryTTS
lib 1009636 // marytts / english - always needed?

import javax.sound.sampled.AudioInputStream;

import marytts.LocalMaryInterface;
import marytts.exceptions.MaryConfigurationException;
import marytts.exceptions.SynthesisException;
import marytts.util.data.audio.MaryAudioUtils;

static LocalMaryInterface maryTTS_init_mary;
static Lock maryTTS_init_lock = lock();

static LocalMaryInterface maryTTS_init() ctex {
  lock maryTTS_init_lock;
  if (maryTTS_init_mary == null) {
    print("Starting MaryTTS...");
    fixContextClassLoader();
    maryTTS_init_mary = new LocalMaryInterface;
  }
  ret maryTTS_init_mary;
}

Author comment

Began life as a copy of #1009632

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009639
Snippet name: maryTTS_init
Eternal ID of this version: #1009639/5
Text MD5: eba04f110bab3a6f51089c7a4ba8d810
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-12 20:39:24
Source code size: 662 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 518
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)