How do I use other voices when using MaryTTS embed?
问题 I want to use MaryTTS embed in my Java application. I have downloaded the jars and put them in my classpath. I can successfully run this test: public static void main(String[] args) throws Exception { MaryInterface marytts = new LocalMaryInterface(); Set<String> voices = marytts.getAvailableVoices(); marytts.setVoice(voices.iterator().next()); AudioInputStream audio = marytts.generateAudio("Hello world."); AudioPlayer player = new AudioPlayer(audio); player.start(); player.join(); } The