fetchaudiominimum

fetchaudiominimum

Default Value: 0 seconds

The minimum time interval to play a fetchaudio source, once started, even if the fetch result arrives in the meantime. The value is a Time Designation. The default is platform-dependent, e.g., “5s”. The idea is that once the user does begin to hear fetchaudio, it should not be stopped too quickly.

Example

<?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>

Explanation

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.

Notes

None

Last updated