Twilio Studio - 如何单独播放收集的数字? [英] Twilio Studio - how to play back gathered digits individually?

查看:25
本文介绍了Twilio Studio - 如何单独播放收集的数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Twilio Studio 中,我正在尝试播放Gather Input On Call"收集的数字.小部件.我指定要大声朗读以下文本:您输入了 {{widgets.GatherPIN.Digits}}."

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}}."

播放此消息时,我听到类似这样的话:您输入了 1324,"而不是你输入了一 - 三 - 二 - 四."

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?

推荐答案

Twilio 目前尚未正式支持 Studio 中的 SSML,因此它可能会在未来某个日期中断,但这是展示它的最简单方法.

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.

支持的方法是使用 Studio TwiML 重定向小部件并返回使用 SSML 的 TwimML,如下所示.例如,您可以在 TwiML Bin 中低于 TwiML.

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>

这篇关于Twilio Studio - 如何单独播放收集的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆