Page 1 of 1

digits play back as numbers for long length digit sequences.

Posted: Tue Mar 10, 2009 11:05 pm
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?

IVR code for account number value

Posted: Wed Mar 11, 2009 10:21 am
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