在录制用户声音时如何检测星号拨号计划中的静音?
在录制用户声音时如何检测星号拨号计划中的静音?
步骤1:我的代码将名字记录为
exten => s,n,wait(1)
exten => s,n(getfirstname),Playback(var/lib/asterisk/sounds/mysoundfiles/getfirstname)
exten => s,n,Record(var/lib/asterisk/sounds/mysoundfiles/firstname:wav,0,10)
exten => s,n,Hangup
步骤2:我的要求是在5秒后挂断电话,如果沉默..
How can i detect the silence in the asterisk dial plan while recording user voices?
Step1: My code for recording firstname as
exten => s,n,wait(1)
exten => s,n(getfirstname),Playback(var/lib/asterisk/sounds/mysoundfiles/getfirstname)
exten => s,n,Record(var/lib/asterisk/sounds/mysoundfiles/firstname:wav,0,10)
exten => s,n,Hangup
Step2: My requirement is to hangup the call after 5 sec If silence..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
根据您的拨号计划状态,如果在录音时收到 10 秒的静音,您的录音将停止。所以建议请复制行
Record(var/lib/asterisk/sounds/mysoundfiles/firstname:wav,0,5) 并且您的解决方案已准备就绪。
As per your Dial-Plan state your recording will stop if 10 seconds sileance received when recording is going on . so isuggest please replcae line
Record(var/lib/asterisk/sounds/mysoundfiles/firstname:wav,0,5) and your solutions is ready.
所以,
So,
沉默不平0000000的。静音选项主要是没有信号。在正常录音情况下,如果用户不说话,仍然会录制一些噪音,并且录音不会停止。
Silence is not flat 0000000's . That silence option is mostly no signal. In normal recording situations, if the user does not say anything, some noise is still recorded and the recording does not stop.