GetVocal Voice Portal Technologies

[1.0 to 2.0][Tags][Attributes][Variables][Events][Properties]

VoiceXML Attribute
 type

How to interpret text to be spoken.

Tags
<field> <grammar> <object> <param> <record> <say-as>

Value Description
Text Content (MIME) type.
"acronym" Speak acronym as letters, not word.
"address" Speak as address.
"currency" Money amount.
"date:d" Day of month.
"date:dmy" Day, month and year.
"date:m" Month.
"date:md" Month and day.
"date:mdy" Month, day and year.
"date:my" Month and year.
"date:y" Year.
"date:ym" Year and month.
"date:ymd" Year, month and day.
"duration:h" Hours.
"duration:hm" Hours and minutes.
"duration:hms" Hours, minutes and seconds.
"duration:m" Minutes.
"duration:ms" Minutes and seconds.
"duration:s" Seconds.
"measure" Measurement.
"name" Speak person's name.
"net" URL.
"number:digits" Digit string one, two, three...
"number:ordinal" First, second, third....
"telephone" Phone number.
"time:h" Hours.
"time:hm" Hours and minutes.
"time:hms" Hours, minutes and seconds.

Compatibility
VoiceXML 1.0 Yes, 2.0 Yes.

Description
The meaning of this attribute depends on the tag: for <object>, <grammar>, <record> and <param>, it is a content type (MIME type), for <field> and <say-as>, it is a data type.

For an <object> tag, it specifies the content type of the data specified by the data attribute.

For a <param> tag in an <object> tag where the valuetype attribute is set to "ref", it specifies the content type of the resource.

For a <grammar> tag, it specifies the content type of the grammar. The XML form of SRGF is specified as "application/grammar+xml" and the ABNF form as "application/grammar". The browser may be able to determine the content type from the HTTP response header or from the filename extension. Proposed standard extensions for SRGF files are ".grxml" for the XML form and ".grm" for the ABNF form.

For a <record> tag, it specifies the content type of the audio file to record.

For a <field> tag, it specifies a built-in type for the field, one of "boolean", "date", "digits", "currency", "number", "phone" or "time".

For a <say-as> tag, it specifies the data type to use in interpreting the value, one of: "acronym", "number:ordinal", "number:digits", "telephone", "date:dmy", "date:mdy", "date:ymd", "date:ym", "date:my", "date:md", "date:y", "date:m", "date:d", "time:hms", "time:hm", "time:h", "duration:hms", "duration:hm", "duration:ms", "duration:h", "duration:m", "duration:s", "currency", "measure", "name", "net", or "address". Note that "acronym", perhaps counter-intuitively, means to speak a group of letters as a word, as in "DEC" or "NASA", rather than the default which is to spell out the letters, as in "IBM" or "USA".
©  GetVocal, inc. All Rights Reserved.