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 Currency not working

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
decentdealman
Posts: 5
Joined: Mon Jun 05, 2006 10:05 pm

SAY AS Currency not working

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

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

IVR application and use of $ for reading currency

Post 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
Last edited by support on Wed Jan 13, 2010 3:45 pm, edited 2 times in total.

decentdealman
Posts: 5
Joined: Mon Jun 05, 2006 10:05 pm

Post by decentdealman »

can i use the say as currency without the $ sign?

<say-as type=”currency”>25.32</say-as>

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

IVR application and use of $ for reading currency

Post 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.
Last edited by support on Wed Jan 13, 2010 3:46 pm, edited 2 times in total.

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

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

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

how are you inserting data into IVR script

Post 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
Last edited by support on Wed Jan 13, 2010 3:48 pm, edited 2 times in total.

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

Post by shanthint@paydq.com »

Yes, that helps.

Thank you very much.

Post Reply