Package javax.speech.synthesis

Examples of javax.speech.synthesis.SynthesizerProperties


     *
     * @return the speaking rate, or -1 if unknown or an error occurred
     */
    public boolean setSpeakingRate(float wordsPerMin) {
  float oldSpeed = getSpeakingRate();
  SynthesizerProperties properties =
      synthesizer.getSynthesizerProperties();
  try {
      properties.setSpeakingRate(wordsPerMin);
      return true;
  } catch (PropertyVetoException pve) {
      try {
    properties.setSpeakingRate(oldSpeed);
      } catch (PropertyVetoException pe) {
    pe.printStackTrace();
      }
      return false;
  }
View Full Code Here

TOP

Related Classes of javax.speech.synthesis.SynthesizerProperties

Copyright © 2018 www.massapicom. 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.