<audio>

Description

Plays an audio file. If the file cannot be played, the content of the <audio> element is played instead. Note that this speech markup <audio> tag is different from the VoiceXML <audio> tag. Please note the important limitation below.

Syntax


<audio
    src="URI">
  child elements
</audio>

Attributes

Attribute

Description

src

Specifies the URI of an audio file to play.

Parents

<audio>, <emphasis>, <enumerate>, <paragraph>, <p>, <prompt>, <prosody>, <sentence>, <s>, <speak>, <voice>

Children

<audio>, <break>, <emphasis>, <mark>, <paragraph>, <p>, <phoneme>, <prosody>, <say-as>, <sentence>, <s>, <sub>, <voice>, #PCDATA

IMPORTANT LIMITATION

The VoiceGenie VoiceXML interpreter removes any SSML <audio> tags that appear within text that will be synthesized into speech. The application developer should therefore never include SSML <audio> tags in such text. They would be removed, along with all contained text.