[英]Make a call in twilio and get the record
I am using twilio to make calls and record messages. 我正在使用twilio拨打电话和记录消息。 Making the call and recording it is done (i can listen to the calls in the console of twilio).
进行通话并进行录音(我可以在twilio的控制台中收听通话)。 Now i want to get the call in .wav but i cant find how to do it.
现在我想用.wav拨打电话,但我找不到方法。 I only find how to get all the calls made.
我只找到如何拨打所有电话。 Is there any way to get the record after finishing the call.
完成通话后,是否有任何方法可以获取记录。 I am using java.
我正在使用Java。 Thanks
谢谢
Twilio developer evangelist here. Twilio开发人员布道者在这里。
You can get a URL to the recording once it is completed by setting a URL for the recordingStatusCallback
when you use <Record>
or <Dial>
, or as the RecordingStatusCallback
parameter when recording a call made with the REST API . 通过在使用
<Record>
或<Dial>
时为recordingStatusCallback
设置URL,或者在RecordingStatusCallback
使用REST API进行的RecordingStatusCallback
时作为RecordingStatusCallback
参数 ,可以在RecordingStatusCallback
完成后获取URL。
Whichever way you do that, when Twilio has completed generating the recording it will send an HTTP request to the URL you set as the callback. 无论您采用哪种方式,当Twilio完成生成记录后,它将向您设置为回调的URL发送HTTP请求。 That request will have a
RecordingUrl
parameter, which will be the URL of the recording. 该请求将具有
RecordingUrl
参数,该参数将是记录的URL。 If you add .wav
to the URL, then you will get the recording in .wav
format. 如果将
.wav
添加到URL,则将获得.wav
格式的记录。
Let me know if that helps at all. 让我知道是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.