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

wav file does not play?

Post by marcr »

what is wrong with this file?

http://audio.plumgroup.com/root/43320050/43320050_2.wav


i have had an audio expert assure me that it is correctly formatted but it will not play from my scratchpad, why is that?

marc

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

Format for IVR audio file should be 8 KHz

Post by support »

Hi,

We've downloaded your audio file and noticed that its sample rate is 44 KHz. However, our IVR platform only supports:

- 8 kHz 16-bit linear headerless PCM (*.pcm)
- 8 kHz μ-law encoded headerless PCM (*.ul)
- 8 kHz α-law encoded headerless PCM (*.al)
- Microsoft WAV format encoded with any of the three formats listed above (*.wav)

So, you should format your audio file to be 8 KHz instead of 44 KHz.

Regards,
Plum Support
Last edited by support on Mon Dec 28, 2009 4:53 pm, edited 1 time in total.

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

returning to previous menu whilst listening to an audio file

Post by marcr »

how do i give users the ability to return to a previous menu when listening to an audio file?

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

IVR code that allows movement back and forth between menus

Post by support »

Hi,

Here is an IVR code example from a previous post that will allow you to move back and forth between <menu>s and allow you to return to the main menu:

Code: Select all

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

<property name="sensitivity"  value="0.3"/>
<property name="timeout" value="10s"/>

<catch event="noinput">
  You will be sent back to the mainmenu.
  <goto next="#mainmenu"/>
</catch>

<form>
  <block>
    <prompt>
      Welcome
    </prompt>
    <goto next="#mainmenu"/>
  </block>
</form>

<menu id="mainmenu">
  <prompt>
    Please choose a function:
    <enumerate/>
  </prompt>
  <choice dtmf="1" next="#buying">
    buy
  </choice>
  <choice dtmf="2" next="#selling">
    sell
  </choice>
</menu>

<menu id="buying">
  <prompt>
    Please choose a function:
    <enumerate/>
  </prompt>
  <choice dtmf="1" next="#finish">
    done
  </choice>
  <choice dtmf="2" next="#mainmenu">
    mainmenu
  </choice>
 </menu>

<menu id="selling">
  <prompt>
    Please choose a function:
    <enumerate/>
  </prompt>
  <choice dtmf="1" next="#finish">
    done
  </choice>
  <choice dtmf="2" next="#mainmenu">
    mainmenu
  </choice>
</menu>

<form id="finish">
  <block>
    <prompt>
      Thanks for calling.
    </prompt>
  </block>
</form>
</vxml>
Hope this helps.

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

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

adding the option to return to main menu listening to audio

Post by marcr »

Hi here is my code, when listening to one of the audio files at the bottom, i would like users to be able to hit # and be returned to the previous menu.

Marc

<?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 tom sawyer press 1.
For tech support, press 2.
For company directory, press 3.
</prompt>
<choice dtmf="1" next="#sawyer_chapters">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<menu id="sawyer_chapters">
<prompt>
For chapter 1, press 1.
For chapter 2, press 2.
For chapter 3, press 3.
</prompt>
<choice dtmf="1" next="#ch1">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<form id="ch1">
<block>
<audio stream="http://myaudio1.wav"/>
</block>
</form>

<form id="ch2">
<block>
<audio stream="http://myaudio2.wav"/>
</block>
</form>

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

</vxml>

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

IVR code to return to previous menu while listening to audio

Post by support »

Hi,

To return to the previous menu while listening to audio file, you could do the following:

Code: Select all

<menu id="ch1">
  <audio stream="http://myaudio1.wav"/>
  <choice dtmf="#" next="#previousmenu"/>
</menu> 
From this IVR code example, while your user is listening to the chapter, they can hit the "#" key at anytime to return to the previous menu.

Hope this helps.

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

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

bug with element 'choice'

Post by marcr »

hi i added the line of code suggested above but it gave me this validation error and does not work:

Validation Results:
Error at line 45, char 13
Message: Element 'choice' is not valid for content model: '(#PCDATA|audio|enumerate|value|assign|clear|data|disconnect|exit|foreach|goto|if|log|prompt|reprompt|return|script|submit|throw|var)*'

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

where did you place the <menu> tag in your IVR code

Post by support »

Hi,

Where exactly are you placing the <menu> tag in your IVR code? Please remember that certain IVR tags can only be placed within other IVR tags as children tags.

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

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

my code

Post by marcr »

hi heres my 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 tom sawyer press 1.
For tech support, press 2.
For company directory, press 3.
</prompt>
<choice dtmf="1" next="#sawyer_chapters">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<menu id="sawyer_chapters">
<prompt>
For chapter 1, press 1.
For chapter 2, press 2.
For chapter 3, press 3.
</prompt>
<choice dtmf="1" next="#ch1">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<form id="ch1">
<block>
<audio stream="http://audio1.wav"/>
<choice dtmf="#" next="#sawyer_chapters"/>
</block>
</form>

<form id="ch2">
<block>
<audio stream="http://audio02.wav"/>
</block>
</form>

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

</vxml>

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

how to fix your IVR code

Post by support »

Hi,

Please refer again to the IVR code example that was given to you. You cannot use a <choice> tag within a <form> tag. A <choice> tag can only be placed within a <menu> tag.

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

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

how to return to previous menu from audio file being played

Post by marcr »

going back to the initial question, how than can i get an audio file to be aborted and the user returned to the previous menu? (a choice tag doesnt work and those attributes of choice cannot be used for audio, block or form.

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

Change code for IVR app to work correctly

Post by support »

Hi,

Again, if you look at the IVR code that was given to you, you could REPLACE the <form> blocks at the bottom of your IVR code with this <menu> block of IVR code and your IVR application would work.

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

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

getting some text to be read out before the audio

Post by marcr »

i think i have solved the issue by putting the audio inside a menu tag. but how can i get a bit of text to be read out before the audio is played, this example inside of prompt doesnt work:

<?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 tom sawyer press 1.
For tech support, press 2.
For company directory, press 3.
</prompt>
<choice dtmf="1" next="#sawyer_chapters">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<menu id="sawyer_chapters">
<prompt>
For chapter 1, press 1.
For chapter 2, press 2.
For chapter 3, press 3.
</prompt>
<choice dtmf="1" next="#ch1">
Sales</choice>
<choice dtmf="2" next="#support">
Tech Support</choice>
<choice dtmf="3" next="#directory">
Company Directory</choice>
</menu>

<menu id="ch1">
<prompt>
To return to the previous menu press hash at any time
</prompt>
<audio stream="http://audio1.wav"/>
<choice dtmf="#" next="#sawyer_chapters"/>
</menu>

<menu id="ch2">
<prompt>
To return to the previous menu press hash at any time
</prompt>
<audio stream="http://audio2.wav"/>
<choice dtmf="#" next="#sawyer_chapters"/>
</menu>

<menu id="ch3">

</menu>

</vxml>

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

IVR code for text to be read before the audio

Post by support »

Hi,

To get your <prompt> to be read before the audio, you could do the following to your IVR code:

Code: Select all

<menu id="ch1">
  <prompt bargein="false">
    To return to the previous menu press hash at any time
  </prompt>
  <prompt>
    <audio stream="http://audio1.wav"/>
  </prompt>
  <choice dtmf="#" next="#sawyer_chapters"/>
</menu> 
Hope this IVR code helps.

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

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

error when playing my recording

Post by marcr »

everytime i run my script at some point during the series of menus, of which there are 3 or 4, the voice, pauses and says "sorry i didnt understand you?" even though i have not pressed any buttons? is it listening to sounds in the background and interpreting them as requests. if so is it possible to switch this feature of as users do not have to talk to the system.


thanks

Post Reply