You cannot detect silence on an encoded format because you would have to decode it to be able to detect the silence. If you want to detect silence use a standard wav/pcm format. On Fri, Sep 4, 2009 at 3:52 PM, Peter Volchek <pvolchek@voicemobility.com>wrote:
Hi, I am getting the warnings in the freeswitch.org , saying...
[WARNING] switch_ivr_play_say.c:567 Can't detect silence on a native recording.
This is thrown each time I am calling session:recordFile in my lua scripts. I am not specifying any extensions, thus relaying on the encoding type chosen by freeswitch. So the files are given extensions .PCMU. I've been told that this is a harmful warning. However, we need an ability to detect the silence in the following scenario. In a voicemail, while the caller is leaving a message, he can mute his phone. The application may kick up the event, saying that silence is detected, so we would pause the recording and play the prompt "Are you still there?" to the caller.
Thanks.
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400