bishoph / sopare

Real time sound pattern recognition in Python for Raspberry/Banana Pi.
Other
321 stars 86 forks source link

IOError: No Default Input Device Available #70

Closed hankp46 closed 5 years ago

hankp46 commented 5 years ago

I'm using A Raspberry Pi with default output(3.5 jack) and a usb microphone. My ALSA configuration is: pcm.!default { type asym playback.pcm "plughw:0,0" capture.pcm "plughw:1,0" } ctl.!default { type hw card 0 } When running sopare I get following error File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 949, in get_default_input_device_info device_index = pa.get_default_input_device() IOError: No Default Input Device Available pyaudio shows following devices: 5 Input Device id 0 - bcm2835 ALSA: - (hw:0,0) Input Device id 1 - bcm2835 ALSA: IEC958/HDMI (hw:0,1) Input Device id 2 - sysdefault Input Device id 3 - dmix Input Device id 4 - default

At a loss on how to resolve this issue.

As an aside. I had sopare working when I was using pulseaudio with this config: pcm.!default pulse ctl.!default pulse

But had to switch due to problems in other applications

hankp46 commented 5 years ago

Problem has nothing to do with sopare, so closing