SpeechEventDispatcherpublic class FreeTTSSynthesizer extends BaseSynthesizer
audioManager, CLEAR_ALL_STATE, engineListeners, engineModeDesc, engineProperties, engineState, engineStateLockspeakableListeners, voiceList| Constructor | Description |
|---|---|
FreeTTSSynthesizer(FreeTTSSynthesizerModeDesc desc) |
Creates a new Synthesizer in the DEALLOCATED state.
|
| Modifier and Type | Method | Description |
|---|---|---|
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
|
addEngineListener, allocate, checkEngineState, deallocate, fireEngineAllocated, fireEngineAllocatingResources, fireEngineDeallocated, fireEngineDeallocatingResources, fireEnginePaused, fireEngineResumed, getAudioManager, getEngineModeDesc, getEngineProperties, getEngineState, getVocabManager, pause, postEngineAllocated, postEngineAllocatingResources, postEngineDeallocated, postEngineDeallocatingResources, postEnginePaused, postEngineResumed, removeEngineListener, resume, setEngineModeDesc, setEngineState, testEngineState, toString, waitEngineStateaddSpeakableListener, dispatchSpeechEvent, fireQueueEmptied, fireQueueUpdated, getSynthesizerProperties, getVoiceList, phoneme, postQueueEmptied, postQueueUpdated, removeSpeakableListener, speak, speak, speak, speakPlainText, stateToStringpublic FreeTTSSynthesizer(FreeTTSSynthesizerModeDesc desc)
desc - describes the allowed mode of operations for this
synthesizer.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 BaseSynthesizerpublic 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 queuepublic void cancel()
throws EngineStateError
cancel in class BaseSynthesizerEngineStateError - if the synthesizer is not in the
proper statepublic void cancel(java.lang.Object source)
throws java.lang.IllegalArgumentException,
EngineStateError
cancel in class BaseSynthesizersource - the object to canceljava.lang.IllegalArgumentException - if the source object is not
currently in the queueEngineStateError - the synthesizer is not in the
proper statepublic 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.