Splitting Audio Stream to Files by Silence

Tim Müller tim at centricular.com
Wed Aug 13 01:18:36 PDT 2014


On Wed, 2014-08-13 at 00:45 -0700, graham_alton wrote:

Hi,

In addition to cutter there's also the 'level' element if you just want
to know when silence changes to non-silence and vice versa, to
start/stop recording.

 Cheers
  -Tim

> I'm very new to using GStreamer for development and have been trying
> (without success) recently to write some code using the Python
> bindings... not helped by the fact that the docs on Berlios.de aren't
> there any more.  I've tried a couple of different approaches and
> rather than ask for help fixing code I thought I'd start off by asking
> for advice on the "right" way to go about doing this.
> 
> 
> What I'd like to do is connect to a microphone device and record
> chunks of audio to different files when there is no silence (assuming
> some sort of silence threshold - perhaps a bit like SilentJack does
> for Jack, see http://www.aelius.com/njh/silentjack/).
> 
> 
> If I've not got the point across then and example might be something
> along the lines of the following:
> 
> 
> 1) Microphone is activated
> 2) 10 seconds of silence
> 3) 10 seconds of non-silence
> 4) 2 seconds of silence
> 5) 5 seconds of non-silence
> 6) etc....
> 
> 
> In the above example I would like 2 audio files to be created, the
> first containing 10 seconds of non-silence and the second containing 5
> seconds of non-silence, etc.
> 
> 
> It looks like Cutter might be rather close to what I need here but
> I've also been playing around (before discovering cutter) with using
> tee and a few other things besides.
> 
> 
> I'd welcome suggestions for the pipeline I need to put together or any
> code examples you know of that might help me (preferably in Python but
> I can translate from C).
> 
> 
> Thanks v. much!
> 
> 
> Graham
> 
> 
> ______________________________________________________________________
> View this message in context: Splitting Audio Stream to Files by
> Silence
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list