Splitting Audio Stream to Files by Silence
graham_alton
graham_alton at hotmail.com
Wed Aug 13 00:45:20 PDT 2014
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 activated2) 10 seconds of silence3) 10 seconds of non-silence4) 2 seconds of silence5) 5 seconds of non-silence6) 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: http://gstreamer-devel.966125.n4.nabble.com/Splitting-Audio-Stream-to-Files-by-Silence-tp4668291.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140813/29df65ab/attachment.html>
More information about the gstreamer-devel
mailing list