Page 1 of 1
SAY AS Currency not working
Posted: Mon Jun 26, 2006 4:49 am
by decentdealman
Hello,
How do i programme the TTS to say currency. at the moment, TTS says for example 1,000.00 as one zero zero zero instead of one thousand.
How do i achieve the say as currency?
IVR application and use of $ for reading currency
Posted: Mon Jun 26, 2006 7:59 am
by support
Hello,
When using the IVR system, if you include the $ sign at the beginning of something you want read as currency the TTS engine will often read it back automatically, however you can give it a hint using the
<say-as> tag:
Code: Select all
<say-as type=”currency”>$25.32</say-as>
This should indicate to the TTS engine that you want the contents of the <say-as> tag read as currency.
Regards,
Plum Support
Posted: Mon Jun 26, 2006 1:03 pm
by decentdealman
can i use the say as currency without the $ sign?
<say-as type=”currency”>25.32</say-as>
IVR application and use of $ for reading currency
Posted: Mon Jun 26, 2006 4:07 pm
by support
IVR developers do not recommend using the currency tag without the $ sign because the
<say-as> tag varies based on the TTS engine while also being intended to handle multiple currency types.
Posted: Thu Apr 12, 2007 3:12 pm
by shanthint@paydq.com
Hello,
amount = 50.30
Your amount is <say-as type="currency"> $<value expr="amount"/></say-as> is reading as fifty point three dollar.
I am getting the dollar amount from web server. Am I doing anything wrong here?
Thank you.
how are you inserting data into IVR script
Posted: Thu Apr 12, 2007 3:18 pm
by support
Hello,
How are you inserting the data into your VoiceXML script? If you are using the
<var> or
<assign> tag you should make sure to put that value in single quotes:
Code: Select all
<var name="amount" expr="'50.30'"/>
This will force the data to be stored as a string and will prevent the IVR system from attempting to parse the data as if it were a floating point number.
Regards,
Plum Support
Posted: Thu Apr 12, 2007 3:55 pm
by shanthint@paydq.com
Yes, that helps.
Thank you very much.