I made this thread in Raspberry PI Stack Exchange and my problem was solved. Until last week I tried to run my Python application again (both in Raspbian and Ubuntu 16.04) this error appeared again.
OSError: [Errrno -9996] Invalid input device (no default output device)
What I have done so far.
pyaudio.PyAudio().get_device_count()
returns0
.arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav
returns this error.
ALSA lib pcm_hw.c:1700:(_snd_pcm_hw_open) Invalid value for card arecord: main:722: audio open error: No such file or directory
- I have properly installed PortAudio version 19 stable.
- I can still use my microphone for other activities like video call, ....
- I am using Python 3.