fi.hut.tml.xsmiles.speech
Class SynthImpl

java.lang.Object
  extended byfi.hut.tml.xsmiles.speech.SynthImpl
All Implemented Interfaces:
Synth

public class SynthImpl
extends java.lang.Object
implements Synth

Author:
honkkis

Constructor Summary
SynthImpl()
           
 
Method Summary
 void cancelAll()
           
 void destroy()
           
 float getPitch()
          Returns the baseline pitch for the current synthesis voice.
 float getSpeakingRate()
          Returns the speaking rate.
 void init()
           
 boolean setPitch(float pitch)
           
 boolean setSpeakingRate(float wordsPerMin)
          Sets the speaking rate in terms of words per minute.
 void speak(java.lang.String s, boolean wait)
           
 void waitEngine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynthImpl

public SynthImpl()
Method Detail

init

public void init()

getSpeakingRate

public float getSpeakingRate()
Returns the speaking rate.

Returns:
the speaking rate, or -1 if unknown or an error occurred

setSpeakingRate

public boolean setSpeakingRate(float wordsPerMin)
Sets the speaking rate in terms of words per minute.

Parameters:
wordsPerMin - the new speaking rate
Returns:
the speaking rate, or -1 if unknown or an error occurred

getPitch

public float getPitch()
Returns the baseline pitch for the current synthesis voice.

Returns:
the baseline pitch for the current synthesis voice

setPitch

public boolean setPitch(float pitch)

speak

public void speak(java.lang.String s,
                  boolean wait)
Specified by:
speak in interface Synth

cancelAll

public void cancelAll()
Specified by:
cancelAll in interface Synth

waitEngine

public void waitEngine()
Specified by:
waitEngine in interface Synth

destroy

public void destroy()
Specified by:
destroy in interface Synth


X-Smiles 1.2