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

goto nextitem no longer appears to work after using *.wav

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
terry.aney
Posts: 4
Joined: Tue Oct 21, 2014 11:23 am

goto nextitem no longer appears to work after using *.wav

Post by terry.aney »

If you view the grammar at https://www.myseverancebenefits.com/esi ... rance.aspx what I am attempting to do (and used to work before using <audio/> tags...

if you answer no (isUnemployedInsurance) and then yes (isUnemployed), it is supposed to play 'Severance.2.wav' then go back and re-prompt isUnemployedInsurance/Severance.3.wav but it doesn't say anything.

When it used to just be text to speech, it worked fine. Any suggestions on how to fix?

Additionally, in my root (https://www.myseverancebenefits.com/esi ... /root.aspx) which catch noinput, prompts something, then uses <reprompt/>, this no longer works either. If I don't answer isUnemployedInsurance, it used to correctly play 'Sorry I didn't get that', then reprompt the user on that same question. Now there is only silence. Here is a snippet of call log from me:

First Prompt:
INPUTMODES set to "DTMF"
Cache Hit: http://plum.benefittech.com/esi_Test/VX ... ance.3.wav
Audio segment from the URL /esi_Test/VXML/Severance.3.wav added to prompt queue
VXI::field_element - activating grammars for form = 'severance' formitem = 'isUnemployedInsurance'
VXI::do_recognition()
PromptManager::Play()

No Response From Me:
received event: noinput:
bargein set to true
INPUTMODES set to "DTMF"
Cache Hit: http://plum.benefittech.com/esi_Test/VXML/Root.2.wav
Audio segment from the URL /esi_Test/VXML/Root.2.wav added to prompt queue
Entering form = 'severance' form item = 'isUnemployedInsurance'
VXI::queue_prompts()
VXI::field_element - activating grammars for form = 'severance' formitem = 'isUnemployedInsurance'
VXI::do_recognition()
PromptManager::Play()
starting playback: bargein=true, inputmodes="dtmf"
Newly queued prompts are now being played

As you can see, the Severance.3.wav isn't added after the <reprompt/>

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

Re: goto nextitem no longer appears to work after using *.wa

Post by support »

Hey Terry,

It looks like you may have mistakenly neglected to wrap your <audio> tags in <prompt> tags. It's generally best practice to always wrap anything that will be played to the caller in a <prompt> tag, whether it be TTS or a recorded audio file. If you change your <audio> tags like such, this should fix the issue with your audio prompts not being played.

Code: Select all

<prompt>
    <audio src="/esi/VXML/Severance.3.wav">Have you filed for state unemployment insurance benefits?  Please press 1 for yes or 2 for no.</audio>
</prompt>
Please let us know if you have any other questions.

Regards,
Plum Support

terry.aney
Posts: 4
Joined: Tue Oct 21, 2014 11:23 am

Re: goto nextitem no longer appears to work after using *.wa

Post by terry.aney »

Thanks. Appears to be working after that change.

Post Reply