アットウィキロゴ

恩背クラス

package tts5;

import com.sun.speech.freetts.*;

public class speakEnglish {
  
void makedata(String message) {
    
    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日 22:04