Twilio Flex 通过 websocket 流式传输音频 [英] Twilio Flex stream audio over websocket

查看:65
本文介绍了Twilio Flex 通过 websocket 流式传输音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当座席在 Flex 仪表板上接听电话时,我正在尝试流式传输音频.尽管在使用 twilio API 时可以开始流式传输.但我没有找到任何与此用例相关的文档.

I am trying to stream audio when an agent picks up call on a flex dashboard. Although one can start streaming when working with twilio APIs. But I didn't find any docs related to this usecase.

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

您可以将 fork 流小部件插入通向 Flex 代理的 Studio 流程?

You can insert the fork stream widget into the Studio flow that leads to a Flex agent?

根据要求,当代理接受呼叫时,媒体流应加入.我认为您无法在 Studio 中执行此操作,因此您必须将其实现为 Flex插件.当插件检测到代理已接受呼叫时,它可以使用呼叫 SID 发出请求以修改呼叫并注入 TwiML.

As requested, the media stream should join when the call is accepted by an agent. I don't think you can do this in Studio, so you would have to implement this as a Flex plugin. When the plugin detects that a call has been accepted by an agent it could make a request using the call SID to modify the call and inject the <Start><Stream> TwiML.

我现在没有更多细节,因为我自己没有构建那种东西.如果这有帮助,请告诉我.

I don't have more detail on that right now, as I've not built that sort of thing myself. Let me know if this helps.

这篇关于Twilio Flex 通过 websocket 流式传输音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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