Home > Articles > Web Services > XML

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

3.50 sentence

Element type

sentence | s

Attributes

xml:lang

Parents

audio | choice | emphasis | enumerate | menu | paragraph | prompt | prosody | sentence | voice

Children

PCDATA | audio | break | enumerate | mark | paragraph | phoneme | prosody | say-as | value | voice

Description

Logically groups the contents of this element as a sentence.

Language model

DTD

<!ELEMENT sentence (%allowed-within-sentence;)* >
<!ATTLIST sentence
  xml:lang NMTOKEN #IMPLIED >

Attributes

  • xml:lang : NMTOKEN

    Specifies the spoken language used with this element - for example, en-US for US English.

Children

PCDATA, audible, and tts content to be organized as a sentence.

Examples

Example 3-61 Various audio content organized as a sentence

<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="2.0">
  <form id="test">
    <block>
      <var name="word" expr="'variable values'"/>
      <prompt>
        <paragraph> 
          <sentence>
            This sentence will be read using text-to-speech.
          </sentence>
          <sentence>
            A sentence may also contain <audio src="audio.wav"/> 
            as well as <emphasis>other</emphasis> speech mark-up and
            <value expr="word"/>.
          </sentence>
        </paragraph>
      </prompt>
    </block>
  </form>
</vxml>
  • + Share This
  • 🔖 Save To Your Account