Basically my question is somewhat same to this one: How to record audio in gstreamer for pre-defined time?
But there is no answer which i can use there and i'm also relatively new to using gstreamer. Using the code in the question posted by the other user what can i add to record the audio in time intervals of x seconds with pauses of y seconds between each capture.