GetVocal Voice Portal Technologies

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

VoiceXML Tag
<audio>

Play audio data.

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

Content Syntax
The value may be empty, or may contain one or more elements, where an element is either parsed text or one of the following tags.

<audio> <break > <emphasis > <enumerate > <mark > <p > <paragraph > <phoneme > <prosody > <s > <say-as > <sentence > <value > <voice>

Attributes
Name Req/opt Default Valid values
caching Optional "fast" "safe"
expr Optional Text
fetchhint Optional "prefetch" "safe" "stream"
fetchtimeout Optional Text
src Optional Text

Compatibility
VoiceXML 1.0 Yes, 2.0 Yes.

Description
Plays pre-recorded or streaming audio. The URL of the source must be specified either by the src attribute, which specifies a fixed URL, or by the expr attribute, which specifies an ECMAScript expression which is evaluated to determine the URL.

For streaming audio, you should set caching="safe" and fetchhint="stream".

The value of the tag (the text between the begin and end tags) specifies "alternative content", i.e. text to be played by speech synthesis in the event that the audio cannot be fetched from the given URL due to a server problem, network overload or other issues. If alternative content is played, it is played exactly as if it had been enclosed in a <prompt> tag.

©  GetVocal, inc. All Rights Reserved.