65.9K
CodeProject 正在变化。 阅读更多。
Home

使用 Cisco 和 ASP.NET (VXML) 配置和录制语音

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.53/5 (9投票s)

2006年5月31日

viewsIcon

25151

如何使用 VXML 配置和录制 Cisco 和 ASP.NET 的语音。

引言

本文档介绍了如何配置 Cisco 设备并在 HTTP 服务器上录制语音。

使用代码

以下是 Cisco 设备的一个示例配置,该设备在一个端口上启用了语音功能。

.
.
.
call application voice vxml flash:1:/http_rec.vxml
!

voice-port 0/0
 supervisory disconnect dualtone mid-call
 supervisory answer dualtone
 pre-dial-delay 2
 no battery-reversal
 input gain 14
 output attenuation -6
 echo-cancel coverage 32
 timeouts interdigit 2
 timeouts call-disconnect 1
 timeouts wait-release 3
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 100 pots
 application vxml
 incoming called-number .
 direct-inward-dial
 port 0/0
!
.
.
.

现在,为语音应用程序创建一个 VXML 文件 (http_rec.vxml)

之后,您应该创建一个 ASP.NET 项目,并将一个 record.aspx 文件添加到该项目中。在代码隐藏文件中,在 Page_Load 方法中添加以下代码

Request.Files["myrec"].SaveAs(@"first.au");

关注点

如果您想了解更多关于 VXML 的信息,请阅读:Cisco VoiceXML 程序员指南

历史

  • 2006年5月21日:使用 Cisco 设备在 HTTP 服务器上进行简单的语音录制。
© . All rights reserved.