After learning how to cut out a piece from our favorite music tracks, the next exciting thing we will have is a 'home grown' audio recorder. Then use it the way you like to record music, mimicry or just a simple speech!
Remember what pipeline we used to play an audio? The elements in the pipeline to play an audio were filesrc
!
decodebin
!
audioconvert
!
autoaudiosink
. The autoaudiosink did the job of automatically detecting the output audio device on your computer.
For recording purposes, the audio source is going to be from the microphone connected to your computer. Thus, there won't be any filesrc
element. We will instead replace with a GStreamer plugin that automatically detects the input audio device. On similar lines, you probably want to save the recording to a file. So, the autoaudiosink
element gets replaced with a filesink
element.
autoaudiosrc is an element we can possibly use for detecting input audio source. However, while testing this program on Windows XP, the autoaudiosrc...