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

Experiencing Latency with audio playing

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
robbiesullivan
Posts: 42
Joined: Mon Oct 10, 2005 3:40 pm

Experiencing Latency with audio playing

Post by robbiesullivan »

Hello,
I've got vxml app pretty much functional now, and I am just begining to fine tune it. I've been noticing the huge latency when my audio files play and I was wondering what steps I can go about to improve it.

The struture of the application is to retrieve .wav files (anywhere from 160kbs to 1.5 mbs) over HTTP and play them. The application is hosted on an hosted IIS server.

two things:
1. when I inistally call, I find the first opening .wav file takes a while to to play, maybe a half a second which is a lot (the file itself is 160kbs).
2. Later on in the vxml a request is made to play the main content which can be anywhere from (160kbs to 1.5mbs). This can take 2-4 seconds to start playing.

Is there anyway I can start queing up these audio files in the background?

Any tips would be greatly appriciated.
thanks

adriannaude
Posts: 34
Joined: Mon Nov 07, 2005 11:27 am
Location: United Kingdom

Post by adriannaude »

If you set the fetchhint attribute of the audio tag to prefetch then the audio files are loaded when the vxml is loaded rather than when the audio tag is executed. That might help....

Adrian

robbiesullivan
Posts: 42
Joined: Mon Oct 10, 2005 3:40 pm

Post by robbiesullivan »

will this work with dynamic audio files as well (audio files that are played with the EXPR attrbitue)?

I will try this with my non-dymanic files.

adriannaude
Posts: 34
Joined: Mon Nov 07, 2005 11:27 am
Location: United Kingdom

Post by adriannaude »

I doubt that it would work with dynamic VXML because the interpreter doesn’t know the page until you actually generate the VXML, which I guess is mid-conversation. Another option is to try and host the voice files as close as you can physically to the voice platform so that the real network latency is minimised, or break the voice files into "sentences" so as to reduce their size (and therefore load time). My own feeling is that it is easier to bear a short delay between sentences rather than a huge delay between paragraphs. :)

robbiesullivan
Posts: 42
Joined: Mon Oct 10, 2005 3:40 pm

Post by robbiesullivan »

the vxml is not dynamic itself. Its static. I play some of the audio files via the <audio expre="" /> tag, so that I can dynimiclly play audio files. What I'm wondering is how to preload these <audio expr="" /> files.

thx for all the input.
Rob

Post Reply