cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
572
Views
0
Helpful
0
Replies

Adding SSML/VXML to VAudio block

Quigath
Spotlight
Spotlight

In my java code I have an order number that needs to be spoken out. It's always a 7-digit string of characters; eg: "1765432". Using the base way I know to do it, the number is spoken as "one million seven-hundred thousand...", but what I'm looking for is digit by digit, like: "one seven six ...".

This way speaks as a number

block.add(VAudio.getNew(getPref(), thisOrder.getFullOrderNumber(), VAudio.TTS_ONLY));

I did discover this way of adding in-line tags, which speaks the way I would like but seems clunky

block.add(VAudio.getNew(getPref(), "<say-as interpret-as=\"characters\">" + thisOrder.getFullOrderNumber() + "</say-as>", VAudio.SSML));

Is there a better way to do this?

I was hoping something like this would work, but I can't seem to find the right syntax or examples.

vaudio.addProprietaryAttribute("interpret-as", "characters");

CVP 11.6, Java 7.

0 Replies 0