<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 4 nov. 2019 15 h 40, kyle111 <<a href="mailto:purehavoc77@gmail.com">purehavoc77@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I am using gstreamer plugin for kaldi<br>
<<a href="https://github.com/alumae/gst-kaldi-nnet2-online" rel="noreferrer noreferrer" target="_blank">https://github.com/alumae/gst-kaldi-nnet2-online</a>>   (speech recognition<br>
tool). This is the  pipeline<br>
<<a href="https://github.com/alumae/gst-kaldi-nnet2-online/blob/master/demo/gui-demo.py" rel="noreferrer noreferrer" target="_blank">https://github.com/alumae/gst-kaldi-nnet2-online/blob/master/demo/gui-demo.py</a>>  <br>
for kaldi plugi to do speech-to-text ( microphone input -> text transcript):<br>
<br>
    self.pulsesrc.link(self.audioconvert)<br>
    self.audioconvert.link(self.audioresample) <br>
    self.audioresample.link(self.asr)<br>
    self.asr.link(self.fakesink) <br>
<br>
<br>
Now, I'd like to record the audio from microphone into .ogg file at the same<br>
time. I made the following changes to the pipeline codes:<br>
<br>
    # get audio from mic device<br>
    self.pulsesrc.link(self.audioconvert1)<br>
    self.audioconvert1.link(self.tee)<br>
<br>
    # save to ogg<br>
    self.audio_queue.link(self.vorbisenc)<br>
    self.vorbisenc.link(self.oggmux)<br>
    self.oggmux.link(self.filesink)<br>
<br>
    # send to asr<br>
    self.asr_queue.link(self.audioconvert)<br>
    self.audioconvert.link(self.audioresample)<br>
    self.audioresample.link(self.asr)<br>
    self.asr.link(self.fakesink)<br>
<br>
    # tied up tee and queues<br>
    self.tee.link(self.audio_queue)<br>
    self.tee.link(self.asr_queue)<br>
<br>
However, the pipeline doesn't work, There is no gst errors but audio is not<br>
saved and text doesn't come out.<br>
I suspect something is blocking the pipeline and I couldn't figure it out.<br>
Would like to hear suggestions !<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Check your return values. Something must be failing. The error is returned by GstPad.link() call directly, and may not appear on the bus.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>