Plum DEV Documentation
voicexml:properties:fetchaudiodelay

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:properties:fetchaudiodelay [2014/06/02 14:41]
jennifer added meta description
voicexml:properties:fetchaudiodelay [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​fetchaudiodelay VoiceXML property | fetchaudiodelay specifies the time to wait at the start of a fetch delay before playing the fetchaudio.}} 
-=====fetchaudiodelay===== 
- 
-**Default Value:** 0 seconds 
- 
-The time interval to wait at the start of a fetch delay before playing the fetchaudio source. The value is a Time Designation. The default interval is platform-dependent,​ e.g. "​2s"​. The idea is that when a fetch delay is short, it may be better to have a few seconds of silence instead of a bit of fetchaudio that is immediately cut off. 
- 
-====Example==== 
-**fetchaudioscript.php** 
-<​code>​ 
-<?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>​ 
-</​code>​ 
-**delayexamplescript.php** 
-<​code>​ 
-<?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>​ 
-</​code>​ 
- 
-====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 
-