Page 1 of 1
words spelled
Posted: Tue Apr 22, 2008 11:02 am
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
IVR code to fix words spelled issue
Posted: Tue Apr 22, 2008 12:45 pm
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
Posted: Tue Apr 22, 2008 12:58 pm
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.
IVR code using <say as> tag
Posted: Tue Apr 22, 2008 1:09 pm
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:
with:
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
Posted: Tue Apr 22, 2008 1:39 pm
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.