|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.engine.BaseEngine
com.sun.speech.engine.synthesis.BaseSynthesizer
com.sun.speech.freetts.jsapi.FreeTTSSynthesizer
Provides partial support for a JSAPI 1.0 synthesizer for the FreeTTS speech synthesis system.
| Field Summary |
| Fields inherited from class com.sun.speech.engine.synthesis.BaseSynthesizer |
speakableListeners, voiceList |
| Fields inherited from class com.sun.speech.engine.BaseEngine |
audioManager, CLEAR_ALL_STATE, engineListeners, engineModeDesc, engineProperties, engineState, engineStateLock |
| Fields inherited from interface javax.speech.synthesis.Synthesizer |
QUEUE_EMPTY, QUEUE_NOT_EMPTY |
| Fields inherited from interface javax.speech.Engine |
ALLOCATED, ALLOCATING_RESOURCES, DEALLOCATED, DEALLOCATING_RESOURCES, PAUSED, RESUMED |
| Constructor Summary | |
FreeTTSSynthesizer(FreeTTSSynthesizerModeDesc desc)
Creates a new Synthesizer in the DEALLOCATED state. |
|
| Method Summary | |
protected void |
appendQueue(BaseSynthesizerQueueItem item)
Places an item on the speaking queue and send the queue update event. |
void |
cancel()
Cancels the item at the top of the queue. |
void |
cancel(java.lang.Object source)
Cancels a specific object on the queue. |
void |
cancelAll()
Cancels all items on the output queue. |
protected BaseEngineProperties |
createEngineProperties()
Factory constructor for EngineProperties object. |
protected BaseSynthesizerQueueItem |
createQueueItem()
Factory method to create a BaseSynthesizerQueueItem. |
java.util.Enumeration |
enumerateQueue()
Returns an enumeration of the queue. |
protected void |
handleAllocate()
Starts the output thread. |
protected void |
handleDeallocate()
Handles a deallocation request. |
protected void |
handlePause()
Pauses the output |
protected void |
handleResume()
Resumes the output |
| Methods inherited from class com.sun.speech.engine.synthesis.BaseSynthesizer |
addSpeakableListener, dispatchSpeechEvent, fireQueueEmptied, fireQueueUpdated, getSynthesizerProperties, getVoiceList, phoneme, postQueueEmptied, postQueueUpdated, removeSpeakableListener, speak, speak, speak, speakPlainText, stateToString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.speech.Engine |
addEngineListener, allocate, deallocate, getAudioManager, getEngineModeDesc, getEngineProperties, getEngineState, getVocabManager, pause, removeEngineListener, resume, testEngineState, waitEngineState |
| Constructor Detail |
public FreeTTSSynthesizer(FreeTTSSynthesizerModeDesc desc)
desc - describes the allowed mode of operations for this
synthesizer.| Method Detail |
protected void handleAllocate()
throws javax.speech.EngineException
handleAllocate in class BaseEnginejavax.speech.EngineException - if an allocation error occursBaseEngine.allocate()
protected void handleDeallocate()
throws javax.speech.EngineException
handleDeallocate in class BaseEnginejavax.speech.EngineException - if a deallocation error occursprotected BaseSynthesizerQueueItem createQueueItem()
createQueueItem in class BaseSynthesizer
public java.util.Enumeration enumerateQueue()
throws javax.speech.EngineStateError
enumerateQueue in interface javax.speech.synthesis.SynthesizerenumerateQueue in class BaseSynthesizerjavax.speech.EngineStateError - if the engine was not in the proper
stateprotected void appendQueue(BaseSynthesizerQueueItem item)
appendQueue in class BaseSynthesizeritem - the item to place in the queue
public void cancel()
throws javax.speech.EngineStateError
cancel in interface javax.speech.synthesis.Synthesizercancel in class BaseSynthesizerjavax.speech.EngineStateError - if the synthesizer is not in the
proper state
public void cancel(java.lang.Object source)
throws java.lang.IllegalArgumentException,
javax.speech.EngineStateError
cancel in interface javax.speech.synthesis.Synthesizercancel in class BaseSynthesizersource - the object to cancel
java.lang.IllegalArgumentException - if the source object is not
currently in the queue
javax.speech.EngineStateError - the synthesizer is not in the
proper state
public void cancelAll()
throws javax.speech.EngineStateError
cancelAll in interface javax.speech.synthesis.SynthesizercancelAll in class BaseSynthesizerjavax.speech.EngineStateErrorprotected void handlePause()
handlePause in class BaseEngineprotected void handleResume()
handleResume in class BaseEngineprotected BaseEngineProperties createEngineProperties()
createEngineProperties in class BaseSynthesizerBaseEngineProperties object specific to
a subclass.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||