Home > Articles > Web Services > XML

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

This chapter is from the book

3.39 phoneme

Element type

phoneme

Attributes

alphabet | ph

Parents

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

Children

PCDATA

Description

Allows for the definition of a word using a phonetic alphabet. The supported phonetic alphabets are:

  • International Phonetic Alphabet (IPA),

  • Worldbet,

  • X-SAMPA.

DTD

<!ELEMENT phoneme (#PCDATA) >
<!ATTLIST phoneme
  ph       %phoneme-string;   #REQUIRED
  alphabet %phoneme-alphabet; #IMPLIED >

Language model

39

Attributes

  • alphabet : phoneme-alphabet

    Indicates which alphabet is being used to represent the ph attribute. Possible values are: ipa (International Phoneme Alphabet), worldbet (Worldbet), xsampa (X-SAMPA).

  • ph : phoneme-string

    Indicates the phonetic spelling of this word. This attribute can also contain entity references such as &uk_tomato; assuming uk_tomato was defined previously using the XML <!ENTITY> declaration.

Children

PCDATA representation of this phoneme.

Examples

Example 3-45 An XML entity declaration showing pronunciation of the word "tomato"

<?xml version="1.0" encoding="iso-8859-1"?>
<!ENTITY uk_tomato "t&#x252;m&#x251;to&#x28a;">

<vxml version="2.0">
  <form id="audiotest">
    <block>
      <prompt xml:lang="us-en">
        In England they pronounce the word tomato like this:
        <phoneme ph="uk_tomato;"> tomato </phoneme>  
      </prompt>
    </block>
  </form>
</vxml>
  • + Share This
  • 🔖 Save To Your Account