Element type | say-as |
Attributes | type |
Parents | audio | choice | emphasis | enumerate | menu | paragraph | prompt | prosody | sentence | voice |
Children | PCDATA | value |
Description | Indicates how to render text to speech with respect to language conventions. |
<!ELEMENT say-as (#PCDATA | value) > <!ATTLIST say-as type CDATA #REQUIRED >
type : CDATA
Indicates the type of tts content contained within this element. The text-to-speech engine is expected to render the speech accordingly.
The supported types are:
acronym
Indicates that the contained text should be spelled out.
address
Indicates that the contained text should be spoken as a postal address.
currency
Indicates that the contained text represents a currency amount.
date
Indicates that the contained text is a date.
date:dmy; date:mdy; date:ymd; date:my; date:ym;date:md
Indicates the order in which the day, month, and year components of the date should be spoken.
date:y; date:m; date:d
Indicates that only the year, month, or day should be spoken.
duration
Indicates that the contained text is a time duration (e.g. 4 hours and 5 minutes).
duration:hms; duration:hm; duration:ms; duration:h;duration:m; duration:s
Indicates which components of a duration (hours, minutes, and/or seconds) should be spoken.
measure
Indicates that the contained text represents a measurement (e.g. 5 mm).
name
Indicates that the contained text represents the proper name of a person or company.
net:email
Indicates that the contained text represents an email address.
net:uri
Indicates that the contained text represents a URI or URL.
number
Indicates that the contained text must be spoken as are presentation of a number (integer, fraction, roman numerals, floating point, etc.).
number:ordinal
Indicates that the contained text is a number to be spoken as an ordinal (e.g. "first," "second," "hundredth," etc.).
number:digits
Indicates that the contained text is one or more numbers that should be read as a string of digits.
spell-out
Spells out the given word letter-for-letter.
telephone
Indicates that the contained text represents a telephone number.
time
Indicates that the contained text is a time.
time:hms; time:hm; time:h
Indicates that the hour, minute, and second should be spoken, the hour and minute should be spoken, or just the hour should bespoken.
PCDATA, audible, and tts elements
To be rendered according to the rules specified by the say-as element.
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form id="audiotest"> <var name="ibmPrice" expr="'$103.23'"/> <block> <prompt xml:lang="us-en"> The current price of <say-as type="acronym">IBM</say-as> is <say-as type="currency"><value expr="ibmPrice"/></say-as>. </prompt> </block> </form> </vxml> |
18.189.188.121