我有一个播放 block ,上面写着许多 .mp3 文件(它读取帐户余额和有关帐户的其他信息。
结果是一条需要一段时间才能收听的消息。消息的长度各不相同,具体取决于所说的内容。
我想要“任意”键来结束播放消息并跳回 c#。
我尝试使用 Gather,但超时值要么截断 Say block ,要么在最后等待很长时间(如果没有按下任何键)
有没有想过如何实现这一目标?
当前流程是这样的:
<?xml version="1.0"?>
<Response>
<Play>/Voice/test/messages/CurrentlyYourPAYGBalanceIs_.mp3</Play>
<Play>/Voice/test/common/numbers/78.mp3</Play>
<Play>/Voice/test/common/currency/_pounds_.mp3</Play>
<Play>/Voice/test/common/misc/_and_.mp3</Play>
<Play>/Voice/test/common/numbers/91.mp3</Play>
<Play>/Voice/test/common/currency/Pence.mp3</Play>
<Play>/Voice/test/messages/_AndYouHavea_.mp3</Play>
<Play>/Voice/test/products/BD021.mp3</Play>
<Play>/Voice/test/common/misc/_with_.mp3</Play>
<Play>/Voice/test/common/numbers/95.mp3</Play>
<Play>/Voice/test/messages/_VoiceBalance.mp3</Play>
<Play>/Voice/test/common/misc/_and_.mp3</Play>
<Play>/Voice/test/common/numbers/2.mp3</Play>
<Play>/Voice/test/common/data/_gigabytes_.mp3</Play>
<Play>/Voice/test/common/numbers/200.mp3</Play>
<Play>/Voice/test/common/misc/_and_.mp3</Play>
<Play>/Voice/test/common/numbers/94.mp3</Play>
<Play>/Voice/test/common/data/_megabytes_.mp3</Play>
<Play>/Voice/test/common/misc/_remaining.mp3</Play>
<Play>/Voice/test/common/misc/Expiring_.mp3</Play>
<Play>/Voice/test/common/dates/31.mp3</Play>
<Play>/Voice/test/common/months/_of12_.mp3</Play>
<Play>/Voice/test/common/years/2016.mp3</Play>
</Response>
最佳答案
大卫,看看这个问题:
具体:
The playback is interrupt-able as it is wrapped in
Gather
which points toPause
action.
关于Twilio - 中断 Say block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41149077/