Specifies how a word or phrase is spoken.
<say-as
detail = "PCDATA"
format = "PCDATA"
interpret-as = "CDATA"
/>
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:
|
<audio>, <emphasis>, <enumerate>, <p>, <prompt>, <prosody>, <s>, <voice>
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>