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

digits play back as numbers for long length digit sequences.

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jkowalonek
Posts: 1
Joined: Tue Mar 10, 2009 10:54 pm
Location: Acton, MA
Contact:

digits play back as numbers for long length digit sequences.

Post by jkowalonek »

With the following syntax, I can correctly get the 10 digit accountNumber value, but the <say-as> plays it as a number instead of digits. change the length to 5 and it plays as digits just fine.

...
<field name="accountNumber" type="digits?length=10"/>
<filled>
<prompt>
<emphasis>OK, here's what I've got!</emphasis> You said your
account number was
<say-as interpret-as="digits">
<value expr="accountNumber" />
</say-as>
</prompt>
</filled>
....

What's up? Have I got something wrong here?
John Kowalonek
President and CEO
J o h n . k o w a l o n e k @ S o r r i s o t e c h . c o m

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

IVR code for account number value

Post by support »

Hi,

If you have AT&T Natural Voices set as your TTS engine, then you should set up your IVR code like this:

englishdigits.php

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>

<vxml version="2.0">

<form>

<field name="englishdigits" type="digits">
<prompt>
Please enter some digits.
</prompt>

<filled>
<prompt>
You entered <say-as type="acronym"> <value expr="englishdigits"/></say-as>.
</prompt>
</filled>
</field>

</form>
</vxml>
Regards,
Plum Support

Post Reply