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

TTS speaking back Digits incorrectly

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
allviant
Posts: 4
Joined: Sat Jan 23, 2010 7:00 am

TTS speaking back Digits incorrectly

Post by allviant »

We just tested this again on our production server and it read our activation code “73373” as “seventy three thousand three hundred seventy three”.

Can someone help us figure out what is going on? Are we doing something wrong?

Here is the specific issue occurs:
</voice></speak>

---------

VXI::queue_prompts()

bargein set to true

INPUTMODES set to "DTMF VOICE"

Audio segment added to prompt queue from TTS application/synthesis+ssml for:

---------

<?xml version='1.0'?><speak><voice name="Samantha" gender="female">

Activation Code for your phone is <prosody rate="medium" volume="75.0"><say-as type="number:digits"> 73373</say-as></prosody><prosody rate="default" volume="100.0"/> .

Activation Code for your phone is <prosody rate="medium" volume="75.0"><say-as type="number:digits"> 73373</say-as></prosody><prosody rate="default" volume="100.0"/> .

Please enter this at <say-as type="net"> www.care pass.com</say-as> to activate this phone.

Press 1 to listen to the activation code again.

Or hang up to exit.

</voice></speak>

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

IVR Code Needed

Post by support »

Hi,

Would you be able to post the IVR code from you IVR application? We've derived an IVR code sample that may match what you are trying to do.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<form>
  <block>
   <prompt>
	<speak><voice name="Samantha" gender="female">
	  Activation Code for your phone is 

	  <prosody rate="medium" volume="75.0">
	    <say-as type="number:digits"> 73373 </say-as>
	  </prosody>

	  <prosody rate="default" volume="100.0"/> .
	  Activation Code for your phone is 

	  <prosody rate="medium" volume="75.0">
	    <say-as type="number:digits"> 73373 </say-as>
	  </prosody>

	  <prosody rate="default" volume="100.0"/> .
	  Please enter this at 

	  <say-as type="net"> www.care pass.com </say-as> 

	  to activate this phone.
	  Press 1 to listen to the activation code again.
	  Or hang up to exit.
	</voice></speak>
   </prompt>
  </block>
</form>
</vxml>
When testing this IVR code sample, we found that it correctly output the number within the <say-as> tag.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:23 am, edited 1 time in total.

allviant
Posts: 4
Joined: Sat Jan 23, 2010 7:00 am

Our sample VXML

Post by allviant »

<?xml version='1.0'?><speak><voice name="Samantha" gender="female">

Activation Code for your phone is <prosody rate="medium" volume="75.0"><say-as type="number:digits"> 73373</say-as></prosody><prosody rate="default" volume="100.0"/> .

Activation Code for your phone is <prosody rate="medium" volume="75.0"><say-as type="number:digits"> 73373</say-as></prosody><prosody rate="default" volume="100.0"/> .

Please enter this at <say-as type="net"> www.care pass.com</say-as> to activate this phone.

Press 1 to listen to the activation code again.

Or hang up to exit.

</voice></speak>

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

Sample IVR code

Post by support »

Hi,

We have reviewed those portions of your IVR logs and have not found any IVR issues within them.

Could you please post the actual VXML code that is run as opposed to the IVR logs that are generated after the IVR call is completed? That'll be very helpful for us. Thanks.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:24 am, edited 1 time in total.

allviant
Posts: 4
Joined: Sat Jan 23, 2010 7:00 am

Actual Voice XML

Post by allviant »

<?xml version="1.0"?>
<vxml version="2.0">
<form id="confCode">
<block>
<prompt>
Hello, This is Care Pass with a message for Peter ,
Your activation code is <prosody volume="100.0" rate="medium"><say-as type="number:digits">73478</say-as>.</prosody> <prosody volume="100.0" rate="default"/>
Your activation code is <prosody volume="100.0" rate="medium"><say-as type="number:digits">73478</say-as>.</prosody> <prosody volume="100.0" rate="default"/>
Please enter this at <say-as type="net">www.care pass.com</say-as> to activate this phone.
</prompt>
<disconnect/>
</block>
</form>
</vxml>

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

Working IVR code

Post by support »

Hi,

We cannot reproduce the IVR error that you are seeing. We have tested the IVR code you have given us and it successfully stated the numbers within the <say-as> as number:digits.

Have you tried testing this snippet of IVR code separately from your production code to see if it reproduces the same behavior?

If you are not able to reproduce this IVR issue solely with this snippet of IVR code, could you please provide us with more context from your production code so that we can reproduce the issue and help you debug it?

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:25 am, edited 1 time in total.

allviant
Posts: 4
Joined: Sat Jan 23, 2010 7:00 am

Post by allviant »

Hi ,
We did few more testing on our end , here are the details

this is the exact code that is there on our server :-

Code: Select all

<?xml version="1.0"?>

<vxml version="2.0" application="/ivr/outbound/root.action">
        <form>
                <block>
                    <assign name="callee_type" expr="'voice'"/>
                        <prompt>
        Hello, This is Care Pass with a message for Sally ,
</prompt>
                        <goto next="#confCode"/>
                </block>

        </form>
        <form id="confCode">
                <property name="timeout" value="5s"/>
                <field name="choice">
                        <grammar type="application/x-jsgf" mode="dtmf">
                                ( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "#" | "*" )
                        </grammar>
                        <prompt count="1">
                                Activation Code for your phone is <prosody volume="75.0" rate="medium"><say-as type="number:digits">1234</say-as></prosody>

                                <prosody volume="100.0" rate="default"/>.
                                Activation Code for your phone is <prosody volume="75.0" rate="medium"><say-as type="number:digits">1234</say-as></prosody>
                                <prosody volume="100.0" rate="default"/>.
                                Please enter this at <say-as type="net">www.care pass.com</say-as> to activate this phone.
                                Press 1 to listen to the activation code again.
                                Or hang up to exit.
                        </prompt>
                        <prompt count="2">
                        Press 1 to listen to activation code again.
                                Or hang up to exit.
                    </prompt>
                        <filled>

                                <if cond="choice=='1'">
                                        <goto next="#confCode"/>
                                <elseif cond="choice!='1'" />
                                        Bye !!! Thanks for using CarePass!!!
                                </if>
                        </filled>

                        <noinput>
                        Sorry I did not receive your response.
                        <reprompt/>

                    </noinput>
                </field>
        </form>
</vxml>
I tested the above code with inbound call by putting it in a scratchpad and it read the numbers correctly. Also when the same code was tried as outbound using "Queue a Single Call with the queuecall web service" it read the number in proper format

http://hosting.plumgroup.com/developer_ ... erence.htm

when i try the same scenario from production server it reads the number in wrong format .

I am not sure but it looks like the TTS is behaving different for outbound calling.

Post Reply