# <phoneme>

Description

Specifies a phonetic pronunciation for the contained text. The format of the representation is vendor-specific, and does not always use one of the 3 alphabets below. See your vendor documentation for details.

Syntax

    <phoneme
        ph="string"
        alphabet="ipa" | "worldbet" | "xsampa">
      text
    </phoneme>

Attributes

Attribute | Description
ph | Specifies the phonetic string. Required.
alphabet | Specifies the alphabet to use. Optional.

Parents

<audio>, <choice>, <emphasis>, <enumerate>, <foreach>, <paragraph>, <p>, <prompt>, <prosody>, <sentence>, <s>, <speak>, <voice>

Children

#PCDATA

Limitations/Restrictions

- `<phoneme>` is only supported as a child of `<foreach>` when `<foreach>` is used within `<prompt>`.
- Refer to your vendor documentation for support details.

Example

To include speech markup tags, insert the SSML tags inside one of the `<prompt>`, `<audio>`, `<choice>`, `<enumerate>`, or `<foreach>` (within `<prompt>`) elements.

    <prompt>
       <!-- If your TTS engine supports the 'ipa' alphabet, -->
       <!-- then this reads out "tomato" with a UK accent -->
       <phoneme alphabet="ipa" ph="t&#x252;m&#x251;to&#x28A;"/>
    </prompt>