twilio - How specify the way to pronounce number/amount of money with TwiML? -



twilio - How specify the way to pronounce number/amount of money with TwiML? -

i'm using amount of money without dollar sign (because twilio doesn't work currency's codes) , big amount pronounced not should. illustration "1212.77 canadian dollars" isn't sounded "one one thousand , 2 hundred ...", it's "twelve, twelve point 70 7 ...". there way generate multicurrency amount of money twilio text-to-speech engine?

updated problem amount of money alice voice engine problem.

i think find reply here,

http://www.twilio.com/docs/api/twiml/say#hints

here snippet stating problem. •when saying numbers, '12345' spoken "twelve one thousand 3 hundred forty-five." whereas '1 2 3 4 5' spoken "one 2 3 4 five."

so solution might add together space between numbers.

you create helper, split values , instead of asking twilio read 1212.77, write 1000 200 12 point 7 7, quite creative such helper , leave much in command of how values pronounced , perhaps spacing / pauses in between values. have helper write 1000 200 , 12 dollars , 77 cents. create utilize of programming language globalisation helpers names currency in question , minor parts such dollars , cents or rupee , paise.

i hope helps.

twilio voice twiml

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -