我有一个播放块,上面写着许多.mp3文件(它读取帐户余额和有关帐户的其他信息。
结果是一条需要一段时间才能听到的消息。信息的长度各不相同,取决于所讲的内容。
我希望“任意”键结束播放消息,然后跳回c#。
我尝试使用一个集合,但是超时值要么截断Say块,要么在结束时等待很长时间(如果没有按下键)
对如何实现这一点有什么想法吗?
目前的流动情况如下:
<?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>https://stackoverflow.com/questions/41149077
复制相似问题