Page 1 of 1
built-in grammar
Posted: Mon Oct 03, 2011 9:37 am
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.
Re: built-in grammar
Posted: Mon Oct 03, 2011 10:26 am
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
Re: built-in grammar
Posted: Mon Oct 03, 2011 11:07 am
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.
Re: built-in grammar
Posted: Mon Oct 03, 2011 12:51 pm
by support
Hi,
As you currently have a demo account, the only TTS engine choice available is AT&T Natural Voices.
Regards,
Plum Support