Detecting silence in recorded file
Hi there, Is there way to do any the following when using the record dial plan tool? - prevent the record tool from writing any samples to the destination file if the audio is not above the given silence threshold - detect whether a recorded file contains any audio above the given silence threshold I would like to treat recordings that are purely "silence" differently from those that contain audio above the silence threshold (such as speech). I would be interested in knowing if anyone has ever done this, and what your approach was. Thanks, Adam
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: http://www.freeswitch.org/node/297 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. -MC On Tue, Sep 13, 2011 at 6:38 AM, Adam Kelloway <adam.kelloway@newpace.ca>wrote:
Hi there,
Is there way to do any the following when using the record dial plan tool?
- prevent the record tool from writing any samples to the destination file if the audio is not above the given silence threshold - detect whether a recorded file contains any audio above the given silence threshold
I would like to treat recordings that are purely "silence" differently from those that contain audio above the silence threshold (such as speech). I would be interested in knowing if anyone has ever done this, and what your approach was.
Thanks, Adam
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Adam Kelloway
-
Michael Collins