在twilio会议中播放音频文件

时间:2021-07-29 18:59:37

I'm looking for an example of how to play an audio file during a twilio conference session. I'd like to play the audio file into the conference at the push of a button by one of the participants.

我正在寻找一个如何在twilio会议期间播放音频文件的示例。我想通过其中一个参与者按下按钮将音频文件播放到会议中。

Any ideas?

1 个解决方案

#1


Here's an article for how to do a roll call during a conference that will give you an idea of how to manage the workflow (you obviously just want the user to hear the played message, and not need to parse the calls):

这是一篇关于如何在会议期间进行点名的文章,它将让您了解如何管理工作流程(您显然只是希望用户听到播放的消息,而不需要解析调用):

https://www.twilio.com/blog/2014/09/roll-call-roger-stringer-shows-you-how-to-take-a-headcount-during-a-twilio-conference-call.html

Basically you have the user exit the conference on the keypress, have the message played, then the user rejoin the conference. If you want it to play for all users, it would disrupt the audio of the conference if you need the record feature for it.

基本上你让用户在按键上退出会议,播放消息,然后用户重新加入会议。如果您希望它为所有用户播放,如果您需要它的录制功能,它将破坏会议的音频。

#1


Here's an article for how to do a roll call during a conference that will give you an idea of how to manage the workflow (you obviously just want the user to hear the played message, and not need to parse the calls):

这是一篇关于如何在会议期间进行点名的文章,它将让您了解如何管理工作流程(您显然只是希望用户听到播放的消息,而不需要解析调用):

https://www.twilio.com/blog/2014/09/roll-call-roger-stringer-shows-you-how-to-take-a-headcount-during-a-twilio-conference-call.html

Basically you have the user exit the conference on the keypress, have the message played, then the user rejoin the conference. If you want it to play for all users, it would disrupt the audio of the conference if you need the record feature for it.

基本上你让用户在按键上退出会议,播放消息,然后用户重新加入会议。如果您希望它为所有用户播放,如果您需要它的录制功能,它将破坏会议的音频。