<say-as> tags provide contextual hints to the TTS engine about how text should be pronounced.
|type||Specifies the contextual hint. See Chapter 4 to view the say-as tag types.|
|interpret-as||Indicates the content type of the contained text construct (e.g. number, date, time, currency). This attribute is redundent, however, as the <say-as> tag types can do this as well.|
|format||Gives hints on the precise formatting of the contained text for content types that may have ambiguous formats (e.g. cardinal, ordinal, and digits (for number) and dmy, md, my, and ym (for date)). This attribute is redundent, however, as the <say-as> tag types can do this as well.|
|sub||This attribute is not supported.|
<?xml version="1.0"?> <vxml version="2.0"> <form> <block> <prompt> Acronym is spelled: <say-as type="acronym"> acronym </say-as> </prompt> </block> </form> </vxml>
The output of the above script would be:
Computer: Acronym is spelled: A-C-R-O-N-Y-M.
<audio>, <emphasis>, <enumerate>, <foreach>, <p>, <paragraph>, <prompt>, <prosody>, <s>, <sentence>, <speak>, <voice>