Have a site where the Customer has an IVR script that will pull item quantity and price for the item from a database. The item price is in one field of the table in the format 22.33. Now when we pull that in to the IVR script and do a TTS for the value the TTS will say "The price for Item X is 22.33 dollars. The 22.33 being the variable. So it says "twenty two point thirty three" dollars. Is there any way to have the TTS say "twenty two" dollars and "thiry three" cents? Thinking no since the field in the table has a value of 22.33.
IPOCC IVR TTS for Price
Collapse
X
-
You can always take the variable from the database and split it into two variables using the right and left string operators in the define variable element in the IVR. So you can use two define variable blocks after the data return and store the right two digits in one and the left digits (using leftfirstex) in another. Then using a TTS block you should be able to speak "<variable1> dollars and <variable2> cents".
-
Comment