动态语音 XML

发布于 2024-10-10 19:57:37 字数 178 浏览 0 评论 0原文

我想从文本文件中读取动态数量的产品。 然后我想在我的 voicexml 文件中使用所有这些产品。

(例如在菜单中使用)

我该怎么做?

为每个产品创建一个表单好吗? 或者将所有产品放在外部语法文件中更好?使用 .vxml 文件中的那些?

有什么想法吗?

提前致谢

I want to read a dynamic number of products from a textfile.
Then i want to use all these products in my voicexml file.

(use: in a menu for example)

How can I do this?

Is it good to create for each product a form?
Or is it better to put all products in an external grammar file? an use those in the .vxml file?

are there any ideas?

thanks in advance

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

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

发布评论

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

评论(1

依 靠 2024-10-17 19:57:37

有几种选择,但都涉及添加应用程序服务器。

  1. 使用 JSP 或 ASP 生成 VoiceXML 页面并使用实现语言读取文件。
  2. 作为 servlet 实现(或多或少与 #1 相同)
  3. 使用 VoiceXML 数据元素 以 XML 形式从应用程序服务器请求列表。然后,VoiceXML 文档可以使用 Javascript 来拼接数据或使用 foreach 元素< /a> 枚举值。

There are a few choices, but all involve adding an application server to the equation.

  1. Generate your VoiceXML page with JSP or ASP and use the implementation language to read the file.
  2. Implement as a servlet (more or less same as #1)
  3. Use the VoiceXML Data element to request the list from an application server as XML. The VoiceXML document can then use Javascript to piece through the data or directly play using the foreach element to enumerate over the values.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文