Twilio Studio - how to play back gathered digits individually?

对着背影说爱祢 提交于 2021-01-29 06:49:30

问题


In Twilio Studio, I am attempting to play back digits gathered by a "Gather Input On Call" widget. I have the following text specified to be spoken aloud: "You entered {{widgets.GatherPIN.Digits}}."

When this message plays, I hear something like: "You entered one thousand three hundred twenty four," rather than, "You entered one - three - two - four."

How can I specify that each digit should be read aloud individually?


回答1:


SSML in Studio is currently not officially supported by Twilio, so it may break at some future date, but it is the easiest way to show it.

A supported way would be to use the Studio TwiML Redirect Widget and return TwimML which uses SSML as shown below. You could below TwiML in a TwiML Bin, for example.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Say>You entered<say-as interpret-as="digits"> {{Digits}}.</say-as></Say>
</Response>



来源:https://stackoverflow.com/questions/63158532/twilio-studio-how-to-play-back-gathered-digits-individually

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!