<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It's not completely clear why you would want to merge the two audio
sources in order to<br>
switch between them, but you could use "audiomixer" or
"input-selector", depending on<br>
your use case. Strictly speaking, the opposite of a tee is a
"funnel", but I doubt that is what<br>
you're looking for here.<br>
<br>
<div class="moz-cite-prefix">On 2/16/19 12:25 AM, Jayesh Dalal via
gstreamer-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK+VgVLsA+T5VoYF8R7yKCvNwqKra2jn8kmE6aqLJR1fx8dB-g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre>
</blockquote>
</body>
</html>