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

words spelled

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

words spelled

Post by shanthint@paydq.com »

Hello,
I have my audio file played for part of the sentence and I have to have the IVR speaks back the number I entered already.
In the following code, it plays the audio file good. But after that when it comes to say the numbers, it spells the tags like '
<say-as i n t e r p r e t - a s = "digits"> as it goes.
It is reading the tags along with the numbers.
Am I doing something wrong here?

Code:


<prompt timeout="2s" >
<audio src="recordings/youentered.wav" > oops i can't locate the audio file</audio>
<sentence>
<say-as interpret-as ="digits">
<value expr="custid1"/>
<value expr="custid2"/></say-as>
<break time="1s"/><say-as interpret-as ="digits">
<value expr="custid3"/>
<value expr="custid4"/>
</say-as>
</sentence>

Any help would be appreciated.

Thank you

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

IVR code to fix words spelled issue

Post by support »

Hi,

We have implemented a slight variation of your IVR code, but we were not able to reproduce this IVR issue with the <say-as> tag.

Code: Select all

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

<form>

<var name="custid1"/>
<var name="custid2"/>
<var name="custid3"/>
<var name="custid4"/>

<block>
<assign name="custid1" expr="1234"/>
<assign name="custid2" expr="12345"/>
<assign name="custid3" expr="123456"/>
<assign name="custid4" expr="1234567"/>
<prompt timeout="2s">
<audio src="recordings/youentered.wav" > oops i can't locate the audio file</audio>
<sentence>
<say-as interpret-as="digits">
<value expr="custid1"/>
<value expr="custid2"/></say-as>
<break time="1s"/><say-as interpret-as="digits">
<value expr="custid3"/>
<value expr="custid4"/>
</say-as>
</sentence>
</prompt>
</block>

</form>
</vxml>
From this IVR code, the numbers were not returned as digits. We recommend that you change your IVR code to the following:

Code: Select all

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

<form>

<var name="custid1"/>
<var name="custid2"/>
<var name="custid3"/>
<var name="custid4"/>

<block>
<assign name="custid1" expr="1234"/>
<assign name="custid2" expr="12345"/>
<assign name="custid3" expr="123456"/>
<assign name="custid4" expr="1234567"/>
<prompt timeout="2s">
<audio src="recordings/youentered.wav" > oops i can't locate the audio file</audio>
<sentence>
<say-as type="acronym">
<value expr="custid1"/>
<value expr="custid2"/></say-as>
<break time="1s"/><say-as type="acronym">
<value expr="custid3"/>
<value expr="custid4"/>
</say-as>
</sentence>
</prompt>
</block>

</form>
</vxml>
Hope this IVR code helps.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 11:00 am, edited 5 times in total.

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

Hello,
In the previous mail, I may give you the wrong information.
Actually reading digits works fine. That is not the problem.
But when it reads the numbers, it reads the tags along with like this
' say-as i n t e r p r e t ="digits" 1 2 3 4 /say-as'

it worked fine before I add the audio tag with this.


the code:

prompt timeout="2s" >
<audio src="recordings/youentered.wav" > oops i can't locate the audio file</audio>
<sentence>
<say-as interpret-as ="digits">
<value expr="custid1"/>
<value expr="custid2"/></say-as>
<break time="1s"/><say-as interpret-as ="digits">
<value expr="custid3"/>
<value expr="custid4"/>
</say-as>
</sentence>
<audio src="recordings/thiscorrect.wav" >oops i can't locate the audio file</audio>
<audio src="recordings/press1.wav" >oops i can't locate the audio file</audio>.<break time="1s"/>
<audio src="recordings/press2.wav" >oops i can't locate the audio file</audio>
<audio src="recordings/enteraccnoagain.wav" >oops i can't locate the audio file</audio>.

</prompt>

Actually with the first audio tag, it works fine. the audio tags after the sentence tag are causing this problem.

Thanks.

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

IVR code using <say as> tag

Post by support »

Hi,

We are still unable to reproduce the IVR issue with your IVR code. Do you still get the same IVR error if you replace:

Code: Select all

<say-as interpret-as ="digits">
with:

Code: Select all

<say-as type ="acronym">
If this suggestion does not work, please provide us with a clearer example or more IVR code to help us reproduce this IVR issue.

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

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

Hello,
Yes, even if I use <say-as type="acronym"> , TTS reads the tags too.
But if I remove the audio tags after the sentence tag, it works fine.
So I put those four audio tags inside another prompt tag out of the one contans the sentence tag. Now it works fine.

Thank you.

Post Reply