|
|||||||||
| 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
public class 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 |
| 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 |
| Constructor Detail |
|---|
public FreeTTSSynthesizer(FreeTTSSynthesizerModeDesc desc)
desc - describes the allowed mode of operations for this
synthesizer.| Method Detail |
|---|
protected void handleAllocate()
throws EngineException
handleAllocate in class BaseEngineEngineException - if an allocation error occursBaseEngine.allocate()
protected void handleDeallocate()
throws EngineException
handleDeallocate in class BaseEngineEngineException - if a deallocation error occursprotected BaseSynthesizerQueueItem createQueueItem()
createQueueItem in class BaseSynthesizer
public java.util.Enumeration enumerateQueue()
throws EngineStateError
enumerateQueue in class BaseSynthesizerEngineStateError - 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 EngineStateError
cancel in class BaseSynthesizerEngineStateError - if the synthesizer is not in the
proper state
public void cancel(java.lang.Object source)
throws java.lang.IllegalArgumentException,
EngineStateError
cancel in class BaseSynthesizersource - the object to cancel
java.lang.IllegalArgumentException - if the source object is not
currently in the queue
EngineStateError - the synthesizer is not in the
proper state
public void cancelAll()
throws EngineStateError
cancelAll in class BaseSynthesizerEngineStateErrorprotected 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 | ||||||||