1 package speech; 2 3 import speech.types.ClassFactory; 4 import speech.types.ISpeechVoice; 5 import speech.types.SpeechVoiceSpeakFlags; 6 7 12 public class Main { 13 public static void main(String [] args) throws Exception { 14 ISpeechVoice v = ClassFactory.createSpVoice(); 15 System.out.println("Make sure your speaker is not off..."); 16 v.speak("We the People of the United States, in Order to " + 17 "form a more perfect Union, establish Justice, " + 18 "insure domestic Tranquility, provide for the " + 19 "common defence, promote the general Welfare, " + 20 "and secure the Blessings of Liberty to ourselves " + 21 "and our Posterity, do ordain and establish this " + 22 "Constitution for the United States of America.",SpeechVoiceSpeakFlags.SVSFDefault); 23 } 24 } 25 | Popular Tags |