VoiceXML 提示& SSML<标记>元素。如何从指定位置读取提示?

发布于 2024-08-12 05:56:43 字数 251 浏览 4 评论 0原文

<标记>元素通知阅读继续到某个点。 但是有没有办法可以从mark(name)id返回的指定位置再次读取提示呢?

它在这种情况下可能很有用:我们正在阅读一篇长文本。然后用户命令:暂停。 我们停下来。然后用户会说“继续”。而我们从上一个位置继续读提示。

这有可能吗?

我还想问另一个问题。无论是否使用 SSML: 如何让它工作 - 暂停提示阅读,然后从我们停止的位置继续? 暂停意味着“完全控制暂停”,以便我们可以随时继续。动态地。

<mark> element informs that reading went on to some point.
But is there a way we could read the prompt again from the specified position returned by mark (name) id?

It could be useful in such a scenario: we are reading a long text. Then the user commands: PAUSE.
We stop. Then the user would say "Go on". And we continue to read the prompt from the last position.

IS that possible at all?

And I would ask yet another question. No matter with the usage of SSML or not:
How to make it work - pause the prompt reading and then continue from the position where we stopped?
Pause means "take full control over that pause", so that we could continue whenever we wanted. Dynamically.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

闻呓 2024-08-19 05:56:43

标记通常用于正常断点。您可能会发现将它们放在段落分隔符或句子分隔符处很有用。只要您的应用程序跟踪源文本中标记 ID 的位置,您就应该能够在该区域重新启动音频。

请注意,为了实现标记,大多数平台会分解文本并将标记条目之间的片段提交到渲染层,然后一次播放一个剪辑。因此,当平台穿过标记时,您可能会看到暂停。

还值得注意的是,只有 VoiceXML 平台的一个子集实现了标记,因此如果您需要在其他平台上运行,标记的可用性或行为差异可能会成为问题。

Mark is normally meant to be used at normal breakpoints. You may find it useful to place them at paragraph breaks or maybe at sentence breaks. As long as your application keeps track of where the mark ids are in your source text, you should be able to restart audio in that area.

Be aware that to implement mark, most platforms break the text and submit the pieces between mark entries to a rendering layer, then play the clip, one at a time. Therefore, you might see pauses as the platform crosses a mark.

It is also worth noting that only a subset of VoiceXML platforms implement mark so the availability of mark or differences in behavior could become an issue if you need to run on additional platforms.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文