Class TextSynthesizerQueueItem

    • Field Detail

      • JSML_ATTRIBUTES

        public static final java.lang.String[] JSML_ATTRIBUTES
      • DIV_ATTRIBUTES

        public static final java.lang.String[] DIV_ATTRIBUTES
      • VOICE_ATTRIBUTES

        public static final java.lang.String[] VOICE_ATTRIBUTES
      • SAYAS_ATTRIBUTES

        public static final java.lang.String[] SAYAS_ATTRIBUTES
      • PHONEME_ATTRIBUTES

        public static final java.lang.String[] PHONEME_ATTRIBUTES
      • EMPHASIS_ATTRIBUTES

        public static final java.lang.String[] EMPHASIS_ATTRIBUTES
      • BREAK_ATTRIBUTES

        public static final java.lang.String[] BREAK_ATTRIBUTES
      • PROSODY_ATTRIBUTES

        public static final java.lang.String[] PROSODY_ATTRIBUTES
      • MARKER_ATTRIBUTES

        public static final java.lang.String[] MARKER_ATTRIBUTES
      • ENGINE_ATTRIBUTES

        public static final java.lang.String[] ENGINE_ATTRIBUTES
      • ELEMENTS

        public static final java.lang.String[] ELEMENTS
      • ELEMENT_ATTRIBUTES

        public static final java.lang.String[][] ELEMENT_ATTRIBUTES
    • Constructor Detail

      • TextSynthesizerQueueItem

        public TextSynthesizerQueueItem()
        Class constructor.
    • Method Detail

      • getTypeString

        public java.lang.String getTypeString()
        Gets the type of this queue item.
        Returns:
        a String for debug purposes
      • linearize

        protected void linearize​(org.w3c.dom.Node n,
                                 java.lang.StringBuffer buf)
        Appends the text for this node to the given StringBuffer.
        Parameters:
        n - the node to traverse in depth-first order
        buf - the buffer to append text to
      • processNode

        protected java.lang.StringBuffer processNode​(org.w3c.dom.Node n,
                                                     java.lang.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.
        Parameters:
        n - the node to traverse in depth-first order
        buf - the buffer to append text to
        Returns:
        a String containing text to undo the effects of the node
      • processElement

        protected java.lang.StringBuffer processElement​(org.w3c.dom.Element element,
                                                        java.lang.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.
        Parameters:
        element - the element to traverse in depth-first order
        buf - the buffer to append text to
        Returns:
        a String containing text to undo the effects of the element
      • processAttributes

        protected java.lang.StringBuffer processAttributes​(org.w3c.dom.Element element,
                                                           java.lang.String[] attributes)
        Gets the list of attributes of the element and returns them in a StringBuffer.
        Parameters:
        element - the element containing attributes (if any)
        attributes - the allowed attributes for element
        Returns:
        a buffer containing the attributes in text form
      • getEngineText

        public java.lang.String getEngineText()
        Gets the text form of this queue item.
        Returns:
        the text form of this queue item.