<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I've a pipeline which is reading from mic and sending audio information to a server:<br></div><div>
<pre class="gmail-programlisting">gst<span class="gmail-gtkdoc gmail-opt">-</span>launch<span class="gmail-gtkdoc gmail-opt">-</span><span class="gmail-number">1.0</span> alsasrc<span class="gmail-gtkdoc gmail-slc"> ! audioconvert ! vorbisenc ! oggmux ! shout2send mount=/stream.ogg port=8000 ip=localhost</span></pre>
</div><div><br></div><div>That works great, however when there is no sound coming from the mic, I need to pipe a static file.</div><div><br></div><div>I can use cutter element (<a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-cutter.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-cutter.html</a>) to detect silence, but how do I change the pipe to read from a file "uridecodebin uri<span class="gmail-gtkdoc gmail-opt">=</span>file<span class="gmail-gtkdoc gmail-opt">:</span><span class="gmail-gtkdoc gmail-slc">///path/to/audiofile"</span> during silence and back to mic when it detects some audio?</div><div><br></div><div>Is there an element that is a reverse of a "tee" element which will allow me to merge two audio sources?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Jayesh<br></div></div></div>