Class TextSynthesizerQueueItem
SynthesizerQueueItem
com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem
- All Implemented Interfaces:
SpeechEventDispatcher
Represents an object on the speech output queue of a
TextSynthesizer
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String[]
static final String
static final String
static final String
static final String
static final String
static final String[]
static final String[][]
static final String
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
static final String
static final String[]
Fields inherited from class com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
itemNumber, synth, thisItemNumber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the text form of this queue item.Gets the type of this queue item.protected void
linearize
(Node n, StringBuffer buf) Appends the text for this node to the given StringBuffer.protected StringBuffer
processAttributes
(Element element, String[] attributes) Gets the list of attributes of the element and returns them in aStringBuffer
.protected StringBuffer
processElement
(Element element, StringBuffer buf) Adds any commands for this element and returns any text that might be needed to undo the effects of this element after it is processed.protected StringBuffer
processNode
(Node n, StringBuffer buf) Adds text for just this node, and returns any text that might be needed to undo the effects of this node after it is processed.Methods inherited from class com.sun.speech.engine.synthesis.BaseSynthesizerQueueItem
cancelled, completed, dispatchSpeechEvent, fireMarkerReached, fireSpeakableCancelled, fireSpeakableEnded, fireSpeakablePaused, fireSpeakableResumed, fireSpeakableStarted, fireTopOfQueue, fireWordStarted, getDocument, getItemNumber, isCancelled, isCompleted, postMarkerReached, postSpeakableCancelled, postSpeakableEnded, postSpeakablePaused, postSpeakableResumed, postSpeakableStarted, postTopOfQueue, postWordStarted, setData, setData, setData, started, waitCompleted
-
Field Details
-
JSML
- See Also:
-
JSML_ATTRIBUTES
-
DIV
- See Also:
-
DIV_ATTRIBUTES
-
VOICE
- See Also:
-
VOICE_ATTRIBUTES
-
SAYAS
- See Also:
-
SAYAS_ATTRIBUTES
-
PHONEME
- See Also:
-
PHONEME_ATTRIBUTES
-
EMPHASIS
- See Also:
-
EMPHASIS_ATTRIBUTES
-
BREAK
- See Also:
-
BREAK_ATTRIBUTES
-
PROSODY
- See Also:
-
PROSODY_ATTRIBUTES
-
MARKER
- See Also:
-
MARKER_ATTRIBUTES
-
ENGINE
- See Also:
-
ENGINE_ATTRIBUTES
-
ELEMENTS
-
ELEMENT_ATTRIBUTES
-
COMMAND_PREFIX
- See Also:
-
COMMAND_SUFFIX
- See Also:
-
DATA_PREFIX
- See Also:
-
DATA_SUFFIX
- See Also:
-
ELEMENT_START
- See Also:
-
ELEMENT_END
- See Also:
-
-
Constructor Details
-
TextSynthesizerQueueItem
public TextSynthesizerQueueItem()Class constructor.
-
-
Method Details
-
getTypeString
Gets the type of this queue item.- Returns:
- a
String
for debug purposes
-
linearize
Appends the text for this node to the given StringBuffer.- Parameters:
n
- the node to traverse in depth-first orderbuf
- the buffer to append text to
-
processNode
Adds text for just this node, and returns any text that might be needed to undo the effects of this node after it is processed.- Parameters:
n
- the node to traverse in depth-first orderbuf
- the buffer to append text to- Returns:
- a
String
containing text to undo the effects of the node
-
processElement
Adds any commands for this element and returns any text that might be needed to undo the effects of this element after it is processed.- Parameters:
element
- the element to traverse in depth-first orderbuf
- the buffer to append text to- Returns:
- a
String
containing text to undo the effects of the element
-
processAttributes
Gets the list of attributes of the element and returns them in aStringBuffer
.- Parameters:
element
- the element containing attributes (if any)attributes
- the allowed attributes forelement
- Returns:
- a buffer containing the attributes in text form
-
getEngineText
Gets the text form of this queue item.- Returns:
- the text form of this queue item.
-