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

uploading large files

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

uploading large files

Post by marcr »

how can i upload large files of 10mb + via the audio repository? http://hosting.plumgroup.com/audio_repository.html

presently it appears that i can only upload files that are less than 2mb

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

IVR system has max upload time of 10m for audio files

Post by support »

Hi,

The maximum upload time for audio files is 10 minutes. Also, you are only allowed to upload 10 mb maximum in files. If you want to increase this limit, you can contact your IVR sales representative or sales@plumvoice.com.

Just out of curiosity, why do you want to upload 10 mb files onto the audio repository?

Regards,
Plum Support
Last edited by support on Tue Jan 12, 2010 2:30 pm, edited 2 times in total.

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

why i want to upload > 10mb files

Post by marcr »

the application we are looking to develop with your application allows users to listen to audio books via the phone. these audio files will be segmented into chapters many of which will be greater than 10mvb. According to your sales rep this type of application is possible with plum voice is this correct?

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

your software

Post by marcr »

I also believe there are issues with making uploads to your repository, i am trying to upload a correctly formatted 6mb wav file. I receive a confirmation response to say upload successful however the file is not uploaded, when i click listen i hear the audio file that was previously uploaded and then 'deleted'.

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

IVR system has streaming capability built into audio tag

Post by support »

Hello,

You should not be using the audio repository for this purpose. It was created for customers who do not have their own web server and need to use static audio with a scratchpad. If you are looking to use extremely large audio files with our IVR systems it is recommended that you make use of the "streaming" capability we have built into the <audio> tag. You will need to put the audio files on your web server and then use the following IVR code to play it:

Code: Select all

<audio stream="http://yourserver.com/path/to/file.wav"/>
This will stream the file from your IVR application server so that there is little to no delay before we start playing the audio file. Please use this solution rather than attempting to upload the files to the audio repository.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:09 pm, edited 4 times in total.

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

error on streaming

Post by marcr »

my code:

<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
<prompt>
<audio stream="http://mydomain.com/myfile.wav"/>
</prompt>
</block>
</form>
</vxml>

using the code above i received this error:


Tue 02 Oct 2007 04:43:53 AM EDT:
Buffering audio stream
Unsupported stream type of (null) for *file_url in PVXpromptSourceStrea constructor
Stream from *file_url has been started
Unsupported Stream Content-Type
received event: connection.disconnect.hangup
Disconnect
Disconnecting On Channel 1

Tue 02 Oct 2007 04:43:54 AM EDT:
VXI::exit_element()
Call End Event
Ending session
Ending Session On Channel 1


please can you help fix my code

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

where are the docs

Post by marcr »

by the way i can't find any reference to streaming in the docs

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

IVR Programmer's Reference Manual

Post by support »

Hi,

You can find a reference to the "stream" attribute for our <audio> tag here in our IVR Programmer's Reference Manual:

http://www.plumvoice.com/docs/dev/voicexml:tags:audio

Regards,
Plum Support
Last edited by support on Wed Jan 13, 2010 9:43 am, edited 4 times in total.

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

sample code for a simple menu system which streams audio

Post by marcr »

hi again

can someone please provide a code sample that does the following: presents a menu with a choice of 4 audiobooks (audiobook 1, audiobook 2, audiobook 3, audiobook 4) and for each audiobook plays the related audio file from the relevant web resource (domain.com/audio1.wav, domain.com/audio2.wav...).

thanks in advance

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

IVR code examples on how to use menus for your application

Post by support »

Hi,

For IVR code examples on how to use menus for your IVR application, you can go here:

http://www.plumvoice.com/docs/dev/devel ... e:tutorial

You can modify the IVR menu example in this tutorial to allow the user to select from 4 audiobooks and in the <form> blocks, you can put the audiobooks that you want your caller to listen to.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:10 pm, edited 3 times in total.

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

on the code samples

Post by marcr »

sorry those code samples are inadequate there is not a single example of streaming

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

IVR error on streaming

Post by support »

Hi,

As to your IVR error with streaming earlier, can you provide a direct link to your audio file? This will help us with replicating the IVR error.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:10 pm, edited 2 times in total.

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

IVR code example...

Post by support »

Hi,

If you had looked into section 2.1 of our tutorial on <menu>s, you would have seen this IVR code example:

Code: Select all


<?xml version="1.0"?>
<vxml version="2.0">

  <form>
    <block>
      <prompt>
         Welcome to Plum Voice.
      </prompt>
      <goto next="#mainmenu"/>
    </block>
  </form>

  <menu id="mainmenu">
    <prompt>
      For sales, press 1.
      For tech support, press 2.
      For company directory, press 3.
    </prompt>
    <choice dtmf="1" next="#sales">
       Sales</choice>
    <choice dtmf="2" next="#support">
       Tech Support</choice>
    <choice dtmf="3" next="#directory">
       Company Directory</choice> 
  </menu>

  <form id="sales">
    <block>
      Please hold for the next available sales
      representative.
      <!-- transfer to sales -->
    </block>
  </form>

  <form id="support">
    <block>
      <!-- transfer to tech support -->
    </block> 
  </form>

  <form id="directory">
    <block>
      <!-- transfer to company directory -->
    </block>
  </form>

</vxml>
Now, taking this IVR example, you can modify it for your audiobook example.

Here's what you would want to do with your IVR code:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

  <menu id="mainmenu">
    <prompt>
      For audiobook 1, press 1.
      For audiobook 2, press 2.
      For audiobook 3, press 3.
    </prompt>
    <choice dtmf="1" next="#audiobook1">
       Audio book 1</choice>
    <choice dtmf="2" next="#audiobook2">
       Audio book 2</choice>
    <choice dtmf="3" next="#audiobook3">
       Audio book 3</choice> 
  </menu>

  <form id="audiobook1">
        <block>
            <audio stream="http://yourserver.com/path/to/audiobook1.wav"/>
        </block>
  </form>

  <form id="audiobook2">
    <block>
            <audio stream="http://yourserver.com/path/to/audiobook2.wav"/>
    </block>
  </form>

  <form id="audiobook3">
    <block>
            <audio stream="http://yourserver.com/path/to/audiobook3.wav"/>
    </block>
  </form>

</vxml>
Hope this helps.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:11 pm, edited 3 times in total.

marcr
Posts: 23
Joined: Fri Sep 21, 2007 9:36 am

the code sample modified

Post by marcr »

hi ive modified the code sample to play a file i uploaded to my repository (which is correctly formatted), for some reason it does not work here is the code:

<?xml version="1.0"?>
<vxml version="2.0">

<form>
<block>
<prompt>
Welcome to Plum Voice.
</prompt>
<goto next="#mainmenu"/>
</block>
</form>

<menu id="mainmenu">
<prompt>
For sales, press 1.
For tech support, press 2.
For company directory, press 3.
</prompt>
<choice dtmf="1" next="#sales">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<form id="sales">
<block>
<audio stream="http://audio.plumgroup.com/root/43320050/43320050_1.wav"/>
</block>
</form>

<form id="support">
<block>
<!-- transfer to tech support -->
</block>
</form>

<form id="directory">
<block>
<!-- transfer to company directory -->
</block>
</form>

</vxml>

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

IVR system needs certain audio formats

Post by support »

Hi,

We've downloaded your audio file and noticed it is not one of the supported IVR formats that we use. For information on what audio formats to use for your audio files, you can go here:

http://www.plumvoice.com/docs/dev/devel ... ence:audio .

Regards,
Plum Support
Last edited by support on Wed Jan 13, 2010 5:41 pm, edited 3 times in total.

Post Reply