Do you need to do something after the call is over, like in a post-processing cron job or hangup hook? If so you can probably apply the principles in Kielhofner's Recqual project. I wrote up some info on it here: <a href="http://www.freeswitch.org/node/297">http://www.freeswitch.org/node/297</a><br>
<br>That story has links plus a recap of what Recqual is all about. The trick is using ecasound's "chains" and "gates" to allow/deny sections of audio to pass through from the source to the destination. If you have a gate that allows only "non silence" to pass through to the target file then you can compare the size of the source to the size of the destination, or you can just check the absolute size of the destination file. In any case, if you don't mind a clever-though-less-than-perfect solution then check it out.<br>
<br>-MC<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 6:38 AM, Adam Kelloway <span dir="ltr"><<a href="mailto:adam.kelloway@newpace.ca">adam.kelloway@newpace.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi there,<br>
<br>
Is there way to do any the following when using the record dial plan tool?<br>
<br>
- prevent the record tool from writing any samples to the destination<br>
file if the audio is not above the given silence threshold<br>
- detect whether a recorded file contains any audio above the given<br>
silence threshold<br>
<br>
I would like to treat recordings that are purely "silence" differently<br>
from those that contain audio above the silence threshold (such as<br>
speech). I would be interested in knowing if anyone has ever done this,<br>
and what your approach was.<br>
<br>
Thanks,<br>
Adam<br>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>