Package marytts.util.data.audio

Examples of marytts.util.data.audio.AudioPlayer.join()


      marytts.setVoice(voice.getName());
      try {
        AudioInputStream audio = marytts.generateAudio(text);
        AudioPlayer player = new AudioPlayer(audio);
        player.start();
        player.join();
       
      } catch (SynthesisException e) {
        logger.error("Error during tts generation: {}", e.getLocalizedMessage(), e);
      } catch (InterruptedException e) {
        logger.error("Error during tts playback: {}", e.getLocalizedMessage(), e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.