星号-如何使用 ChanSpy() 或任何其他方法“耳语"音乐? [英] Asterisk- How to 'whisper' music using ChanSpy(), or any alternative?

查看:33
本文介绍了星号-如何使用 ChanSpy() 或任何其他方法“耳语"音乐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算向其中一位会议参与者耳语"音乐/消息文件,而不让其他会议参与者听到此消息.我阅读了 Asterisk Cookbook 中的音频操作章节(http://ofps.oreilly.com/titles/9781449303822/c03-AudioManipulation_id302347.htmlhtml )但想不通:

I intend to 'whisper' music/message file to one of the conference participants without making this message audible to other conference participants. I went through Audio Manipulation chapter in Asterisk Cookbook (http://ofps.oreilly.com/titles/9781449303822/c03-AudioManipulation_id302347.html ) but couldn't figure out:

1) 如何使用 ChanSpy 向会议参与者实现耳语"音乐文件​​?

1) How to implement 'whisper' music file to a participant of conference using ChanSpy?

2) 使用 ChanSpy '耳语'音乐文件是最好的方法吗?您会建议让用户退出会议并播放消息,然后让她重新加入会议吗?

2) Is 'whisper'ing the music file using ChanSpy the best approach? Would you recommend, getting the user out of conference playing the message, and putting her back into the conference?

非常感谢您的回复.谢谢!

I would greatly appreciate your responses. Thanks!

推荐答案

最佳方法的问题取决于您究竟想做什么.您仅指定要向单个参与者耳语音乐/消息.为此将它们从会议中删除只会更加复杂.至于怎么做,这里是大概的代码:

The question of best approach depends on what exactly your trying to do. You only specified that you want to whisper music/message to a single participent. Removing them from the conference for that will only be MORE complicated. As far as how to, here is approximate code:

拨号方案:

[whisper-to-participant]
exten => s,1,Answer()
exten => s,n,ChanSpy(<Participants channel>,w)

然后发起呼叫(在本例中使用呼叫文件,尽管 AMI 可以正常工作)如下:

Then originate a call (in this example were using a call file, although AMI would work just fine) as:

Channel: Local/s@whisper-to-participant
Application: Playback
Data: <prompt/music file>

虽然我的语法在这里可能并不完美,但这是如何向单个参与者流式传输/耳语数据的基本思想.

While my syntax may not be perfect here, this is the basic idea of how to stream/whisper data to a single participant.

这篇关于星号-如何使用 ChanSpy() 或任何其他方法“耳语"音乐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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