Package com.sun.speech.freetts.jsapi
Class FreeTTSSynthesizerQueueItem
SynthesizerQueueItem
com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
com.sun.speech.freetts.jsapi.FreeTTSSynthesizerQueueItem
- All Implemented Interfaces:
SpeechEventDispatcher,FreeTTSSpeakable
public class FreeTTSSynthesizerQueueItem
extends BaseSynthesizerQueueItem
implements FreeTTSSpeakable
Represents an object on the speech output queue of a
FreeTTSSynthesizer.
Extends the BaseSynthesizerQueueItem by allowing access to the DOM
document.-
Field Summary
Fields inherited from class com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
itemNumber, synth, thisItemNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the DOM document for this object.Gets the input streambooleanReturnstrueif the item is a JSML document (Java Speech Markup Language text).booleanisStream()Returnstrueif the item is an input streamMethods inherited from class com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
cancelled, completed, dispatchSpeechEvent, fireMarkerReached, fireSpeakableCancelled, fireSpeakableEnded, fireSpeakablePaused, fireSpeakableResumed, fireSpeakableStarted, fireTopOfQueue, fireWordStarted, getItemNumber, isCancelled, isCompleted, postMarkerReached, postSpeakableCancelled, postSpeakableEnded, postSpeakablePaused, postSpeakableResumed, postSpeakableStarted, postTopOfQueue, postWordStarted, setData, setData, setData, started, waitCompletedMethods inherited from interface com.sun.speech.freetts.FreeTTSSpeakable
cancelled, completed, getText, isCompleted, isPlainText, started, waitCompleted
-
Constructor Details
-
FreeTTSSynthesizerQueueItem
public FreeTTSSynthesizerQueueItem()Construct a queue item.
-
-
Method Details
-
getDocument
Gets the DOM document for this object.- Specified by:
getDocumentin interfaceFreeTTSSpeakable- Overrides:
getDocumentin classBaseSynthesizerQueueItem- Returns:
- the DOM document for this object.
-
isStream
public boolean isStream()Returnstrueif the item is an input stream- Specified by:
isStreamin interfaceFreeTTSSpeakable- Returns:
- true if the item is an input stream;
otherwise, returns
false
-
getInputStream
Gets the input stream- Specified by:
getInputStreamin interfaceFreeTTSSpeakable- Returns:
- the input stream
-
isDocument
public boolean isDocument()Returnstrueif the item is a JSML document (Java Speech Markup Language text).- Specified by:
isDocumentin interfaceFreeTTSSpeakable- Returns:
trueif the item is a document; otherwise, returnsfalse
-