Page 1 of 1

<say-as> question

Posted: Mon Jun 18, 2007 10:30 am
by shanthint@paydq.com
Hello,

We have some issue with the <say-as> tag.
It seems like the tag is working fine in the developer's site.
But not in our own plum server.
We have two problems with following code.

1. In our server , for "*" it says asterisk. We need it to say star.
In developer's site, it says star.
2. And the <say-as> currency is not working too. It supposed to say for example one dollar and ten cents. But it says dollar one point ten. This one is also working fine in the developer's site.


<var name="amt" expr="'0.00'" />
<form id="enterAmt">
<field name="amount" type="currency" >

<prompt>
Please enter the amount to pay. Use the * key for the decimal point.
</prompt>

<filled>
<assign name="amt" expr="amount"/>
<goto next ="#confAmt" />

</filled>

</field>


</form>

<form id="confAmt">
<block>
<prompt>
You entered <say-as type="currency">$<value expr="amt"/></say-as>.
</prompt>
</block>
</form>


Any help would be appreciated.
Thank you.

IVR places space between string and value block following it

Posted: Mon Jun 18, 2007 12:11 pm
by support
There are some differences between the different TTS engines that we offer. I believe you were set up with Cepstral Swift. It renders "*" as asterisk. If you want the TTS engine to say "star" you should just put that text in directly rather than the symbol.

As far as currency rendering is concerned, a space is being inserted between the "$" and the entered value. You should do this instead:

Code: Select all

<say-as type="currency"><value expr="'$'+amt"/></say-as>
The IVR will always place a space between any string and a value block following it in order to maintain token separation. By relying on ECMAscript string concatenation capabilities directly within the "expr" attribute of the <value> tag, you'll be guaranteed a string that has no interpolated spaces.