devs.speechpackage
Class SpeechSynthesizer

java.lang.Object
  extended by java.lang.Thread
      extended by biocell.BioThread
          extended by devs.speechpackage.SpeechSynthesizer
All Implemented Interfaces:
java.lang.Runnable

public class SpeechSynthesizer
extends BioThread

Author:
Martin Lukac

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SpeechSynthesizer()
          default constructor simply check the ressources available from the speech.properties file
 
Method Summary
 void addsynthListener(javax.speech.synthesis.SpeakableAdapter sA)
          add a synthesizer listener, which is useful to check the status of the speech, and some time constants
 javax.speech.synthesis.Synthesizer getEngine()
           
 javax.speech.EngineList getEngineList()
           
 java.util.List getSynth()
           
 javax.speech.synthesis.SynthesizerModeDesc getSynthDesc()
           
 void run()
           
 void setEngine(java.lang.String engineName)
          set a speech synthesizer according to its name
 
Methods inherited from class biocell.BioThread
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpeechSynthesizer

public SpeechSynthesizer()
default constructor simply check the ressources available from the speech.properties file

Method Detail

getEngine

public javax.speech.synthesis.Synthesizer getEngine()
Returns:
- main sytnehsizer

getSynthDesc

public javax.speech.synthesis.SynthesizerModeDesc getSynthDesc()
Returns:
main Sytnhesizer Description

getEngineList

public javax.speech.EngineList getEngineList()
Returns:
EngineList - list of registered engines

setEngine

public void setEngine(java.lang.String engineName)
set a speech synthesizer according to its name

Parameters:
engineName - - the name of an engine

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getSynth

public java.util.List getSynth()
Returns:
- the list of all synthesizers

addsynthListener

public void addsynthListener(javax.speech.synthesis.SpeakableAdapter sA)
add a synthesizer listener, which is useful to check the status of the speech, and some time constants