在 Twilio 中是否可以同时收集和记录?
In Twilio is it possible to Gather and Record simultaneously?
在 twilio 回复中,我通常可以录制对话并转录。例如。
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record transcribe="true" transcribeCallback="/transcribe"/>
</Response>
不过,我有兴趣对 Gather
的新语音选项做同样的事情。例如
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather input="speech" action="/completed">
<Say>Welcome home!</Say>
</Gather>
</Response>
然而,虽然我可以在 /completed
处理程序 SpeechResult
参数中获得转录,但我无法同时记录收集到的语音。有什么办法可以将 Record
与 Gather
一起使用吗?
这里是 Twilio 开发人员布道者。
正如您所发现的,您不能同时使用 <Record>
and <Gather>
。
我能想到的唯一可以记录整个通话以及进行语音识别部分的方法是,如果您在拨打电话时 generating the call yourself from the REST API. The you could set the Record
parameter 为真。这将记录整个通话。
如果有帮助请告诉我。
在 twilio 回复中,我通常可以录制对话并转录。例如。
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record transcribe="true" transcribeCallback="/transcribe"/>
</Response>
不过,我有兴趣对 Gather
的新语音选项做同样的事情。例如
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather input="speech" action="/completed">
<Say>Welcome home!</Say>
</Gather>
</Response>
然而,虽然我可以在 /completed
处理程序 SpeechResult
参数中获得转录,但我无法同时记录收集到的语音。有什么办法可以将 Record
与 Gather
一起使用吗?
这里是 Twilio 开发人员布道者。
正如您所发现的,您不能同时使用 <Record>
and <Gather>
。
我能想到的唯一可以记录整个通话以及进行语音识别部分的方法是,如果您在拨打电话时 generating the call yourself from the REST API. The you could set the Record
parameter 为真。这将记录整个通话。
如果有帮助请告诉我。