package tts3;
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");
v.allocate();
v.setVolume(1.0f);
v.setRate(v.getRate() / 2.0f);
v.speak(message);
v.deallocate();
}
}
最終更新:2011年08月19日 06:48