调用IVR时的动词记录超时问题 [英] Problems with verb Record timeout when calling an IVR

查看:82
本文介绍了调用IVR时的动词记录超时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用Twilio为这些IVR创建自动测试框架.

我们从Twilio到IVR进行呼出电话,使用动词Say/Play与IVR进行交互,并且我们使用Record来捕获IVR所说的内容,然后我们将其转录并做出断言.

当我要求Twilio拨打电话号码并且我假装为IVR时,一切正常.但是当我要求Twilio呼叫真正的IVR时,当IVR停止讲话并等待一些输入时,显然Record谓词无法识别暂停.

我们尝试调整timeout属性,但是没有运气,它记录了所有内容,只有当IVR结束通话时,Twilio才提供整个记录的回调.我们希望每一次与IVR的互动都以独立的音频进行,就像我假装时一样.

以下是带有记录动词的TwiML的示例:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Record action="http://foo/nextStep"
            method="POST" 
            playBeep="false" 
            recordingStatusCallback="http://foo/recordStatus" 
            timeout="2"
            transcribe="false"
            trim="do-not-trim" />
</Response>

解决方案

此处是Twilio开发人员的福音.

为此,我建议您使用 <Record> <Gather input="speech"> .使用<Gather>进行语音输入的目的是对输入做出反应,以构建启用语音的IVR,但我只能想象,它在此测试方案中也能更好地工作.它将为您实时转录结果,代替为您返回录音.

让我知道是否有帮助.

We're trying to use Twilio to create an automated test framework for those IVRs.

We do an outbound call from Twilio to the IVR, use the verb Say/Play to interact with the IVR and we're using Record to capture what the IVR is saying, latter we transcribe it and make the assertions.

When I ask Twilio to call a phone number and I pretend to be the IVR, everything works perfectly. But when I ask Twilio to call the real IVR, apparently the Record verb can't recognize the pauses, when the IVR stops talking and is waiting for some input.

We tried tweak the timeout attribute but no luck, it records everything and only when the IVR ends the call, Twilio give me the callback with the entire recording. We want each interaction with the IVR in a separate audio, the way we have when I'm pretending.

Here is an example of the TwiML with the Record verb:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Record action="http://foo/nextStep"
            method="POST" 
            playBeep="false" 
            recordingStatusCallback="http://foo/recordStatus" 
            timeout="2"
            transcribe="false"
            trim="do-not-trim" />
</Response>

解决方案

Twilio developer evangelist here.

Rather than using <Record> for this, I would recommend using <Gather input="speech">. The intention of speech input with <Gather> is to react to input to build a voice enabled IVR, but I can only imagine that it will work better in this testing scenario too. It will live transcribe the results for you in place of returning the recordings for you.

Let me know if that helps.

这篇关于调用IVR时的动词记录超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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