Examples of speak()


Examples of com.sun.speech.freetts.Voice.speak()

         */
        helloVoice.allocate();
       
        /* Synthesize speech.
         */
        helloVoice.speak("Thank you for giving me a voice. "
                         + "I'm so glad to say hello to this world.");

        /* Clean up and leave.
         */
        helloVoice.deallocate();
View Full Code Here

Examples of com.sun.speech.freetts.Voice.speak()

        Voice helloVoice = voiceManager.getVoice("kevin16");
        if (helloVoice == null) {
            System.exit(1);
        }
        helloVoice.allocate();
        helloVoice.speak("all over the world, you can see");
        helloVoice.deallocate();
        System.exit(0);
    }
}
View Full Code Here

Examples of com.sun.speech.freetts.Voice.speak()

    helloVoice.allocate();
    Locale a = helloVoice.getLocale();
    System.out.println(a.getLanguage());
    /* Synthesize speech.
     */
    helloVoice.speak(textTo);
    /* Clean up and leave.
     */
    helloVoice.deallocate();

  }
View Full Code Here

Examples of com.sun.speech.freetts.Voice.speak()

   
    /* Synthesize speech.
    */
//     helloVoice.speak("Thank you for giving me a voice. "
//             + "I'm so glad to say hello to this world.");
        helloVoice.speak("How much wood could a woodchuck chuck if a woodchuck could chuck wood?");
        helloVoice.speak("The RDF Schema vocabulary (RDFS)");

    /* Clean up and leave.
    */
        helloVoice.deallocate();
View Full Code Here

Examples of com.sun.speech.freetts.Voice.speak()

    /* Synthesize speech.
    */
//     helloVoice.speak("Thank you for giving me a voice. "
//             + "I'm so glad to say hello to this world.");
        helloVoice.speak("How much wood could a woodchuck chuck if a woodchuck could chuck wood?");
        helloVoice.speak("The RDF Schema vocabulary (RDFS)");

    /* Clean up and leave.
    */
        helloVoice.deallocate();
        System.exit(0);
View Full Code Here

Examples of com.sun.speech.freetts.Voice.speak()

    if(voice!=null) {
      if(!voice.isLoaded()) {
        voice.allocate();
      }
      voice.speak(text);
    } else {
      logger.error("Could not find voice: " + voiceName);
      StringBuilder sb = new StringBuilder();
      if(logger.isInfoEnabled()) {
        for(String name : voices.keySet()) {
View Full Code Here

Examples of org.sodbeans.phonemic.tts.TextToSpeech.speak()

            // Stop the debugger
            compiler.stopDebugger(false);
            speech.stop();
            String message = "Stop debugging";
            if (TextToSpeechOptions.isScreenReading()) {
                speech.speak(message, SpeechPriority.HIGHEST);
            }
        } else {
            // Stop the TOD Session.
            TODSessionFactory.getDefault().getActionHandler().stop();
            speech.stop();
View Full Code Here

Examples of org.sodbeans.phonemic.tts.TextToSpeech.speak()

            // Stop the TOD Session.
            TODSessionFactory.getDefault().getActionHandler().stop();
            speech.stop();
            String message = "Debugging session ended";
            if (TextToSpeechOptions.isScreenReading()) {
                speech.speak(message, SpeechPriority.HIGHEST);
            }
        }
    }
}
View Full Code Here

Examples of org.sodbeans.phonemic.tts.TextToSpeech.speak()

        FileObject docs = provider.getDocumentsDirectory();
        compiler.setDocumenationFolder(FileUtil.toFile(docs));
        if(compiler.document()) {
                    //speak some kind of message saying that documentation was generated
            if (TextToSpeechOptions.isScreenReading())
                speech.speak("Documentation was built successfully", SpeechPriority.HIGH);
        }
        else {
            if (TextToSpeechOptions.isScreenReading())
                speech.speak("Error while building documentation", SpeechPriority.HIGH);
        }
View Full Code Here

Examples of org.sodbeans.phonemic.tts.TextToSpeech.speak()

            if (TextToSpeechOptions.isScreenReading())
                speech.speak("Documentation was built successfully", SpeechPriority.HIGH);
        }
        else {
            if (TextToSpeechOptions.isScreenReading())
                speech.speak("Error while building documentation", SpeechPriority.HIGH);
        }
    }

    @Override
    protected String getDisplayName() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.