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

built-in grammar

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jallard
Posts: 21
Joined: Mon Oct 03, 2011 7:20 am

built-in grammar

Post by jallard »

When using the built-in grammar digits, is there a way to make the numbers you entered get repeated one by one, as opposed to a full number. Example of some simple code:

<form id="Sequence">
<field name="chkseq" type="digits?length=6">
<prompt>
Please enter the check sequence number located on the check.
</prompt>
<filled>
You entered <value expr="chkseq"/>
</filled>
</field>
</form>

If I enter 111111, the number is repeated as one hundred eleven thousand one hundred eleven, as opposed to six ones.

Thanks.

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

Re: built-in grammar

Post by support »

Hi jallard,

Yes, depending on the TTS engine you are using, here are two code examples on how you can have the digits spoken one-by-one:

If using RealSpeak:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form id="Sequence">
<field name="chkseq" type="digits?length=6">
<prompt>
Please enter the check sequence number located on the check.
</prompt>
<filled>
<prompt>
You entered <say-as type="digits"><value expr="chkseq"/></say-as>.
</prompt>
</filled>
</field>
</form>
</vxml>
If using AT&T:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form id="Sequence">
<field name="chkseq" type="digits?length=6">
<prompt>
Please enter the check sequence number located on the check.
</prompt>
<filled>
<prompt>
You entered <say-as type="acronym"><value expr="chkseq"/></say-as>.
</prompt>
</filled>
</field>
</form>
</vxml>
Hope this helps. Please let us know if you have any questions.

Regards,
Plum Support

jallard
Posts: 21
Joined: Mon Oct 03, 2011 7:20 am

Re: built-in grammar

Post by jallard »

Yes that helps. Thank you. One further question. How do I choose which engine to use? The engine that is being used on the scratchpad screen is AT&T.

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

Re: built-in grammar

Post by support »

Hi,

As you currently have a demo account, the only TTS engine choice available is AT&T Natural Voices.

Regards,
Plum Support

Post Reply