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.
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
Re: built-in grammar
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:
If using AT&T:
Hope this helps. Please let us know if you have any questions.
Regards,
Plum Support
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>
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>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Re: built-in grammar
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
Hi,
As you currently have a demo account, the only TTS engine choice available is AT&T Natural Voices.
Regards,
Plum Support
As you currently have a demo account, the only TTS engine choice available is AT&T Natural Voices.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com