This is an old revision of the document!
Default Value: no default value
The URI of the audio to play while waiting for a document to be fetched. The default is not to play any audio during fetch delays. There are no fetchaudio properties for audio, grammars, objects, and scripts. The fetching of the audio clip is governed by the audiofetchhint, audiomaxage, audiomaxstale, and fetchtimeout properties in effect at the time of the fetch. The playing of the audio clip is governed by the fetchaudiodelay, and fetchaudiominimum properties in effect at the time of the fetch.
<?php header("Content-type: text/xml"); echo "<?xml version=\"1.0\"?>\n"; ?> <vxml version="2.0"> <property name="fetchaudio" value="holdmusic.wav"/> <property name="fetchaudiodelay" value="2s"/> <property name="fetchaudiominimum" value="5s"/> <form> <block> <goto next="delayexamplescript.php"/> </block> </form> </vxml>
<?php header("Content-type: text/xml"); echo "<?xml version=\"1.0\"?>\n"; sleep(10); ?> <vxml version="2.0"> <form> <block> <prompt> delayed script </prompt> </block> </form> </vxml>
From this example, the “fetchaudio” property sets holdmusic.wav to play whenever there is a delay in fetching a file. The “fetchaudiodelay” property causes a 2 second delay to happen before the “fetchaudio” source is played. The “fetchaudiominimum” property causes a 5 second minimum time interval to play the “fetchaudio” source, even after the fetch has arrived. For the purposes of this example, the delay php script is set to sleep for 10 seconds for the fetchaudio elements to play.