Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to record the audio into ogg/wav file at the same time? #93

Open
kzintun opened this issue Nov 4, 2019 · 0 comments
Open

how to record the audio into ogg/wav file at the same time? #93

kzintun opened this issue Nov 4, 2019 · 0 comments

Comments

@kzintun
Copy link

kzintun commented Nov 4, 2019

I am trying to record audio while running recognition from kaldi asr. I have tried the following pipeline in gstreamer (modified from gui-demo.py):

    # get audio from mic device
    self.pulsesrc.link(self.audioconvert)
    self.audioconvert.link(self.tee)

    # save to ogg
    self.audio_queue.link(self.vorbisenc)
    self.vorbisenc.link(self.oggmux)
    self.oggmux.link(self.filesink)

    # send to asr
    self.asr_queue.link(self.audioresample)
    self.audioresample.link(self.asr)
    self.asr.link(self.fakesink)
   
    # tied up tee and queues
    self.tee.link(self.audio_queue)
    self.tee.link(self.asr_queue)

But it's not working. No error message but getting 0 kb file and no output from ASR.
Any help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant