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&#39;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&#39;s &quot;chains&quot; and &quot;gates&quot; to allow/deny sections of audio to pass through from the source to the destination. If you have a gate that allows only &quot;non silence&quot; 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&#39;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">&lt;<a href="mailto:adam.kelloway@newpace.ca">adam.kelloway@newpace.ca</a>&gt;</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 &quot;silence&quot; 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>