We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Something about fetchaudio

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
walkerline
Posts: 7
Joined: Fri Aug 26, 2011 3:46 pm

Something about fetchaudio

Post by walkerline »

Hi, in my VXML file, it should have a fetchaudio played while waiting webserver to send request back after users enter their commands. But sometimes the fetchaudio doesnt play the hour glass sound in time after pressing the command...In other words, it seems the fetchaudio doesnt be played at all...

Here is a piece of my VXML code of fetchaudio:

<data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="audio/Tone.wav"/>

In my previous VXML service platform, after users enter their commands,system will play the hour glass sound immediately.

So, is this the case that only happens in plum?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Something about fetchaudio

Post by support »

Hi,

We believe that your script is being fetched before the fetchaudio can be played.

If you want the fetchaudio file to play even after the fetch has arrived, you can use the "fetchaudiominimum" property, as documented here.

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.1">
<property name="fetchaudiominimum" value="5s"/>
<var name="phone" expr="'1234567890'"/>
<var name="registrationsource" expr="'asdf'"/>
  <form>
    <data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="holdmusic.wav"/>
    ...
    ...
    ...
  </form>
</vxml>
Regards,
Plum Support

walkerline
Posts: 7
Joined: Fri Aug 26, 2011 3:46 pm

Re: Something about fetchaudio

Post by walkerline »

Actually, I would like to put the audio played before fetch arrive, how can I make this happen?
support wrote:Hi,

We believe that your script is being fetched before the fetchaudio can be played.

If you want the fetchaudio file to play even after the fetch has arrived, you can use the "fetchaudiominimum" property, as documented here.

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.1">
<property name="fetchaudiominimum" value="5s"/>
<var name="phone" expr="'1234567890'"/>
<var name="registrationsource" expr="'asdf'"/>
  <form>
    <data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="holdmusic.wav"/>
    ...
    ...
    ...
  </form>
</vxml>
Regards,
Plum Support

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Something about fetchaudio

Post by support »

Hi,

The fetchaudiominimum property still allows you to hear the audio before the fetch arrives. Our initial guess was that the fetch was happening too quickly for the fetchaudio to be played and thus, wasn't able to be heard by the caller.

Please let us know if you have any further questions on this.

Regards,
Plum Support

Post Reply