Giter Site home page Giter Site logo

Comments (8)

pywrangler avatar pywrangler commented on July 22, 2024 1

i am having the same problem...did you find a fix?

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

I'm afraid I've never run into this issue before. Are you by chance using a virtual machine?

If so, I can't really help you other than to suggest you don't do that or that you pipe the output into a file first.

from dejavu.

joei4cm avatar joei4cm commented on July 22, 2024

Nope, I ran it on my real linux workstation than a virtual machine. And I think my microphone input is OK since I could get sound recorded via alsa- arecord. 👍 :)
Is there any more method could be check of this issue? I think I have proves that the issue occurs during calling pyaudio.PyAudio()

 def __init__(self, dejavu):
     super(MicrophoneRecognizer, self).__init__(dejavu)
     # Add logging by me
     print "logged here"
     self.audio = pyaudio.PyAudio()

     self.stream = None
     self.data = []
     self.channels = MicrophoneRecognizer.default_channels
     self.chunksize = MicrophoneRecognizer.default_chunksize
     self.samplerate = MicrophoneRecognizer.default_samplerate
     self.recorded = False

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

A pyaudio issue could be a couple of things:

  • check you have ffmpeg installed correctly
  • make sure proper codecs are installed

There's of course a host of other issues that it could be, but those are my only experience in troubleshooting pyaudio.

At this point, probably asking around is a good idea. Stack Overflow is always a good resource:

  • [http://stackoverflow.com/questions/7088672/pyaudio-working-but-spits-out-error-messages-each-time](PyAudio working, but spits out error messages each time)

Further, make sure you aren't doing anything silly when setting the input and output: https://github.com/bastibe/PyAudio/issues/3.

from dejavu.

joei4cm avatar joei4cm commented on July 22, 2024

Thank you pal, I will have more try and let you updated.
I think alsa record works for me, so I think I am not that silly. 😄

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

Best of luck. If you find a fix, do post here and others may benefit.

from dejavu.

Vinalti avatar Vinalti commented on July 22, 2024

Hello,
I have the same problem.
Did someone find a solution ?
There is the details :

  • This problem occurs on my 2 OS on the same computer : Ubuntu 14.04 and Kali Linux
  • The sound works properly with YouTube
  • Micro is activated and works in the parameters
  • The error message is this one :

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave

Thank you

from dejavu.

mvrozanti avatar mvrozanti commented on July 22, 2024

Same problem. Except I'm on Linux Mint.

ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave

I do have a setup where I pipe my default speaker into my mic. Maybe I should disable it..?

P.S.: if I set the recording seconds to more than 5 I completely freeze my computer. Maybe it has something to do with memory usage? I do notice that I don't get the same error when running pyaudio.PyAudio() on python3. I'm trying to see if dejavu can be ported to python3 easily.

from dejavu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.