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

<say-as> question

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

<say-as> question

Post 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.

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

IVR places space between string and value block following it

Post 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.

Post Reply