星号-如何使用ChanSpy()或任何其他方式“窃窃私语"音乐? [英] Asterisk- How to 'whisper' music using ChanSpy(), or any alternative?
问题描述
我打算将音乐/消息文件耳语"给一位会议参与者,而不会使其他会议参与者听到此消息.我读过《星号食谱》中的音频操纵"一章 ( http://ofps.oreilly.com/titles/9781449303822/c03-AudioManipulation_id302347. html ) 但不知道:
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屋!