播放默认蜂鸣声

chl*_*loe 1 twilio

有没有办法播放默认的 Twilio 蜂鸣声?根据文档,它似乎仅适用于<Record><Conference>。我想实现这样的目标:

<Say>Enter your answer after the beep.</Say>
<Gather action="/blah"></Gather>
/* Beep sound goes here */
Run Code Online (Sandbox Code Playgroud)

谢谢!

Mar*_*ona 5

这里是 Twilio 开发者布道者。

您可以使用<Play>动词播放任何您想要的内容。因此,在上面的示例中,您可以执行以下操作:

<Say>Enter your answer after the beep.</Say>
<Play>https://www.soundjay.com/button/sounds/beep-01a.mp3</Play>
<Gather action="/blah"></Gather>
Run Code Online (Sandbox Code Playgroud)

这样,它会说出您的文本,然后会发出嘟嘟声并开始处理您的<Gather>.

希望这可以帮助你。