<audio>
<audio>
Retrieves and plays the specified audio file. If the audio file is unavailable, any enclosed text is sent to the TTS engine for speech synthesis instead.
Attributes
Notes
The setting for the “src” attribute has priority over the setting for the “expr” attribute. If the wave file at the location specified by the “src” attribute can not be retrieved, the text within the “audio” tag will be read by the TTS engine.
Example
The output of the above script would be:
Computer: I'm going to play an audio file. Computer: (plays audio file if available)
Child Tags
<audio>, <break>, <desc>, <emphasis>, <enumerate>, <mark>, <p>, <paragraph>, <phoneme>, <prosody>, <say-as>, <sentence>, <speak>, <sub>, <value>, <voice>
Parent Tags
<audio>, <block>, <catch>, <emphasis>, <enumerate>, <error>, <field>, <filled>, <foreach>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <paragraph>, <prompt>, <prosody>, <record>, <sentence>, <speak>, <subdialog>, <transfer>, <voice>
Last updated