VoiceXML的 - 在录制认识DTMF [英] VoiceXML - Recognize DTMF in Recording

查看:239
本文介绍了VoiceXML的 - 在录制认识DTMF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做IVR工作了一段时间,但我们有在那里我喜欢一些专家意见/反馈情况:

I've been doing IVR work for a while, but we have a case where I'd love some expertise/feedback:

是否有可能记录消息,其中用户可以preSS DTMF音频指示暂停,我们会插入自己的声音?在这种情况下,用户将记录是这样的:早安,[DTMF],请致电[DTMF]办公室协调您的帐户。

Is it possible to record a message where the user could press a DTMF tone to indicate a pause where we would insert our own sound? In this scenario, the user would record something like: "Good Morning, [DTMF], please call the office at [DTMF] to reconcile your account.".

不知道我们是否会砍得到的WAV文件成片发送我们的信息之前插入我们的变量,或者做一些后期处理。

Not sure whether we would chop the resulting WAV file into pieces to insert our variables, or do some post-processing before sending out our message.

没有人有任何经验,这样的事情?

Does anyone have any experience with something like this?

感谢

吉姆·斯坦利
黑板连接

Jim Stanley Blackboard Connect

推荐答案

在VoiceXML的方式与使用的记录的元素记录从用户的消息。在记录的元素有一个属性调用的 dtmfterm 的如果将它设置为true(默认设置)将终止录制。如果这个属性被设置为当的 MAXTIME 的达到或沉默的持续时间设置为false,然后记录被终止的 finalsilence 的到达。拥有的 dtmfterm 的设置为false,只会导致记录的DTMF是一部分。设置的 dtmfterm 的为true,将导致记录被终止。

In VoiceXML you would use a record element to record a message from a user. The record element has an attribute call dtmfterm which if set to true (default setting) will terminate recording. If this attribute is set to false then recording is terminated when maxtime setting is reached or silence for the duration of finalsilence is reached. Having dtmfterm set to false will just result in the DTMF being part of the recording. Setting dtmfterm to true will result in the recording being terminated.

我创建了使用呼叫者创建的录音应用程序,但从来没有一个操纵录音像您的要求。你可能能够做的就是连击记录在一起。这里是一个<一个href=\"http://stackoverflow.com/questions/6777340/how-to-join-2-or-more-wav-files-together-programatically\">QA显示了如何串联使用C#的WAV录音。

I have created applications that use caller created recordings but never one that manipulates the recordings like in your requirements. What you may be able to do is concatenate recordings together. Here is a QA that shows how to concatenate wav recordings using C#.

你将必须进行实验的是你是否能赶上这DTMF按键是通过使用语法pssed $ P $。该规范逃避这个,但它可能会有些特定于您所使用的VoiceXML的IVR平台。如果你知道使用的DTMF按键则可以指导用户preSS *插入沉默和#终止录制。双方将终止记录,但在你的VoiceXML逻辑会右后卫再次记录,如果*为pressed和停止录制过程完全如果是#pressed。那么你可以使用串联串这些记录在一起,并使用与pre-记录沉默WAV文件中所插入的用户之间的拼接过程中记录的片断。

What you will have to experiment with is whether you can catch which DTMF key was pressed by using grammars. The spec eludes to this but it may be somewhat specific to the VoiceXML IVR platform that you are using. If you know what DTMF key was used then you can instruct the user to press * to insert silence and # to terminate recording. Both will terminate a recording but the logic in your VoiceXML will go right back into recording again if the * is pressed and stop the recording process completely if the # is pressed. Then you would use the concatenation to string these recording together and use a wav file with pre-recorded silence in the concatenation process that is inserted between the users recorded snippets.

这是它看起来像你正在使用C#和MVC为您的VoiceXML应用程序的标签。有一个开源项目 VoiceModel ,使得它更容易使用ASP.NET MVC开发VoiceXML应用程序4.您可以了解它如何处理在这种环境中在这里拍摄。

From the tags it looks like you are using C# and MVC for your VoiceXML application. There is an open source project called VoiceModel that makes it easier to develop VoiceXML applications using ASP.NET MVC 4. You can read about how it handles recording in this environment here.

这篇关于VoiceXML的 - 在录制认识DTMF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆