GetVocal Voice Portal Technologies

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

VoiceXML Tag
 <value>

Insert value of expression as text.

Parent Tags
<audio> <block> <catch> <choice> <emphasis> <enumerate> <error> <field> <filled> <help> <if> <initial> <log> <menu> <noinput> <nomatch> <object> <p> <paragraph> <prompt> <prosody> <record> <s> <sentence> <subdialog> <transfer> <voice>

Content Syntax
The value must be empty.

Attributes
Name Req/opt Default Valid values
audiobase Optional Text
class Optional Text
expr Required Text
mode Optional "tts" "recorded" "tts"

Compatibility
VoiceXML 1.0 Yes, 2.0 Yes.

Description
The <value> tag inserts a value into text, usually text which is the source of a speech synthesis prompt. It can also be used in text to output by the <log> tag.

The expression in the expr tag is evaluated to determine the value to insert.

By default, the literal value of the text is inserted, so <prompt>the quick <value expr="'brown'"/> fox</prompt> is equivalent to <prompt>the quick brown fox</prompt>.

If the class attribute is set, this determines how the inserted value is to be interpreted by the speech synthesizer. For example, if class="number:ordinal", the value "3" would be spoken as "third" rather than "three". The values for the class attribute correspond exactly to the values for the type attribute of the <say-as> tag.

By default, values are spoken using speech synthesis. Some browsers may support the ability to speak some classes of values by concatentating pre-recorded vocabulary files (which preferably should be recorded by the same person who recorded other prompts for your application). This is requested by setting the mode attribute to "recorded", though browsers are free to ignore that request.

©  GetVocal, inc. All Rights Reserved.