<say-as>

Specifies how a word or phrase is spoken.

Syntax

<say-as
    detail = "PCDATA"
    format = "PCDATA"
    interpret-as = "CDATA"
/>

Attributes

Attribute

Data Type

Required?

Default

Description

detail

PCDATA

no

NA

Level of detail to read aloud or render.

format

PCDATA

no

NA

Provides precise formatting information for the contained text for content types with ambiguous formats.

interpret-as

CDATA

yes

NA

Style of a given text format. Valid values:

  • letters = Pronounce contained text as individual characters.

  • vxml:digits = Speak contained text as digits. For example: "one two three" instead of "one hundred and twenty three".

  • vxml:number = Contained text is a number.

  • vxml:date = Contained text is a date. Format values for dates are dmy, mdy, ymd, ym, my, md, y.

  • vxml:time = Contained text is a time of day. Format values for time are hm, and hms.

  • vxml:currency = Contained text is a currency amount.

  • vxml:phone = Contained text is a telephone number.

  • vxml:boolean = Speak contained text as an affirmative or negative phrase appropriate to the current locale.

Parents

<audio>, <emphasis>, <enumerate>, <p>, <prompt>, <prosody>, <s>, <voice>

Children

<value>

Example

In the following example, the text that results from evaluating the expression is spoken in the style specified by the enclosing <say-as> element.

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <form>
    <block>
            <var name="x" expr="12345"/>
            <prompt>
                date <say-as interpret-as="letters">RTE</say-as>
                date <say-as interpret-as="vxml:date">2002-04-25</say-as>
                digits <say-as interpret-as="vxml:digits"> <value expr="x"/></say-as>
                number <say-as interpret-as="vxml:number">54321</say-as>
                phone <say-as interpret-as="vxml:phone">123-456-7890</say-as>
                currency <say-as interpret-as="vxml:currency">£123.56</say-as>
                time <say-as interpret-as="vxml:time">20.16</say-as>

            </prompt>
        </block>
    </form>
</vxml>

See Also

<emphasis>, <prosody>, <voice>