Indicates information on the type of text construct contained within the element and helps specify the level of detail for rendering the contained text. However, the latest version of the spec acknowledges that defining a comprehensive set of types is difficult because of the variety of languages that must be considered and because of the innate flexibility of written languages.
<say-as
interpret-as="construct_type"
format="string"
detail="string"
type="construct_type"
sub="string">
text
</say-as>
|
|
Attribute |
Description |
|
interpret-as |
Indicates the content type of the contained text construct. This may have values that are similar to the previous |
|
format |
Further specifies the precise formatting of the contained text for content types that may have ambiguous formats. The legal values for this attribute depend on the value of the |
|
detail |
Indicates the level of detail to be read aloud or rendered. This attribute can be used for all |
|
type |
In the latest version of the SSML spec, this is replaced by interpret-as, format, and detail attributes. See your vendor documentation to confirm which attributes are supported/recommended. Indicates the text construct type. The values of type can optionally contain a colon and format:
Note: When multi-field quantities are specified in the type format (ex. "dmy", etc.), it is assumed that the fields are separated by a single non-alphanumeric character, in the contained text. |
|
sub |
In the latest version of the SSML spec, this is replaced by the <sub> tag. See your vendor documentation to confirm which syntax is supported/recommended. Defines substitute text to be spoken instead of the contained text. |
Audio Emphasis Enumerate ForEach Paragraph Paragraph Prompt Prosody Sentence Speak Voice
Value #PCDATA
To include speech markup tags, insert the SSML tags inside one of the <prompt>, <audio>, <enumerate>, or <foreach> (within <prompt>) elements.
<prompt> <say-as type="acronym">XML</say-as> You still owe me <say-as type="currency">$12345.67</say-as> Today's date is <say-as type="date:ymd">2005/01/01</say-as> My email address is <say-as type="net:email">docs@voicegenie.com</say-as> </prompt> |