Package com.sun.speech.freetts.jsapi
Class FreeTTSSynthesizerQueueItem
- java.lang.Object
-
- 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 aFreeTTSSynthesizer
. 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 Constructor Description FreeTTSSynthesizerQueueItem()
Construct a queue item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
getDocument()
Gets the DOM document for this object.java.io.InputStream
getInputStream()
Gets the input streamboolean
isDocument()
Returnstrue
if the item is a JSML document (Java Speech Markup Language text).boolean
isStream()
Returnstrue
if the item is an input stream-
Methods 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, waitCompleted
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.speech.freetts.FreeTTSSpeakable
cancelled, completed, getText, isCompleted, isPlainText, started, waitCompleted
-
-
-
-
Method Detail
-
getDocument
public org.w3c.dom.Document getDocument()
Gets the DOM document for this object.- Specified by:
getDocument
in interfaceFreeTTSSpeakable
- Overrides:
getDocument
in classBaseSynthesizerQueueItem
- Returns:
- the DOM document for this object.
-
isStream
public boolean isStream()
Returnstrue
if the item is an input stream- Specified by:
isStream
in interfaceFreeTTSSpeakable
- Returns:
- true if the item is an input stream;
otherwise, returns
false
-
getInputStream
public java.io.InputStream getInputStream()
Gets the input stream- Specified by:
getInputStream
in interfaceFreeTTSSpeakable
- Returns:
- the input stream
-
isDocument
public boolean isDocument()
Returnstrue
if the item is a JSML document (Java Speech Markup Language text).- Specified by:
isDocument
in interfaceFreeTTSSpeakable
- Returns:
true
if the item is a document; otherwise, returnsfalse
-
-