public class TextSynthesizerQueueItem extends BaseSynthesizerQueueItem
TextSynthesizer
.Modifier and Type | Field and Description |
---|---|
static String |
BREAK |
static String[] |
BREAK_ATTRIBUTES |
static String |
COMMAND_PREFIX |
static String |
COMMAND_SUFFIX |
static String |
DATA_PREFIX |
static String |
DATA_SUFFIX |
static String |
DIV |
static String[] |
DIV_ATTRIBUTES |
static String[][] |
ELEMENT_ATTRIBUTES |
static String |
ELEMENT_END |
static String |
ELEMENT_START |
static String[] |
ELEMENTS |
static String |
EMPHASIS |
static String[] |
EMPHASIS_ATTRIBUTES |
static String |
ENGINE |
static String[] |
ENGINE_ATTRIBUTES |
static String |
JSML |
static String[] |
JSML_ATTRIBUTES |
static String |
MARKER |
static String[] |
MARKER_ATTRIBUTES |
static String |
PHONEME |
static String[] |
PHONEME_ATTRIBUTES |
static String |
PROSODY |
static String[] |
PROSODY_ATTRIBUTES |
static String |
SAYAS |
static String[] |
SAYAS_ATTRIBUTES |
static String |
VOICE |
static String[] |
VOICE_ATTRIBUTES |
Constructor and Description |
---|
TextSynthesizerQueueItem()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEngineText()
Gets the text form of this queue item.
|
String |
getTypeString()
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
a
StringBuffer . |
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.
|
public static final String JSML
public static final String[] JSML_ATTRIBUTES
public static final String DIV
public static final String[] DIV_ATTRIBUTES
public static final String VOICE
public static final String[] VOICE_ATTRIBUTES
public static final String SAYAS
public static final String[] SAYAS_ATTRIBUTES
public static final String PHONEME
public static final String[] PHONEME_ATTRIBUTES
public static final String EMPHASIS
public static final String[] EMPHASIS_ATTRIBUTES
public static final String BREAK
public static final String[] BREAK_ATTRIBUTES
public static final String PROSODY
public static final String[] PROSODY_ATTRIBUTES
public static final String MARKER
public static final String[] MARKER_ATTRIBUTES
public static final String ENGINE
public static final String[] ENGINE_ATTRIBUTES
public static final String[][] ELEMENT_ATTRIBUTES
public static final String COMMAND_PREFIX
public static final String COMMAND_SUFFIX
public static final String DATA_PREFIX
public static final String DATA_SUFFIX
public static final String ELEMENT_START
public static final String ELEMENT_END
public TextSynthesizerQueueItem()
public String getTypeString()
String
for debug purposesprotected void linearize(Node n, StringBuffer buf)
n
- the node to traverse in depth-first orderbuf
- the buffer to append text toprotected StringBuffer processNode(Node n, StringBuffer buf)
n
- the node to traverse in depth-first orderbuf
- the buffer to append text toString
containing text to undo the
effects of the nodeprotected StringBuffer processElement(Element element, StringBuffer buf)
element
- the element to traverse in depth-first orderbuf
- the buffer to append text toString
containing text to undo the
effects of the elementprotected StringBuffer processAttributes(Element element, String[] attributes)
StringBuffer
.element
- the element containing attributes (if any)attributes
- the allowed attributes for
element
public String getEngineText()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses