package tts;
import com.sun.speech.freetts.*;
public class pro {
public static void main(String[] args) {
String message = "I love you.";
VoiceManager vm = VoiceManager.getInstance();
Voice v = vm.getVoice("kevin16");
System.out.println(
v.getName() + ":" +
v.getOrganization() + ":" +
v.getDescription() + ":" +
v.getGender() + ":" +
v.getAge() + ":" +
v.getRate() + ":" +
v.getAudioPlayer().getClass());
v.allocate();
v.setVolume(1.0f);
v.speak(message);
v.setRate(v.getRate() / 2.0f);
v.speak(message);
v.deallocate();
System.out.print("finished");
}
}
最終更新:2011年08月19日 06:13