I am using a raspberry pi model B with a Logitech USB Microphone, and I have python version 2.7.3 and a new install of pyaudio version 0.2.8. When I try and run the record.py file located in the test folder provided when pyaudio was downloaded, I get this error
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1438 Expression 'ValidateParameters( inputParameters, hostApi, StreamDirection_In )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2742 Traceback (most recent call last): File "record.py", line 26, in <module> frames_per_buffer=CHUNK) File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 747, in open stream = Stream(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 442, in __init__ self._stream = pa.open(**arguments) IOError: [Errno Invalid number of channels] -9998
I was not able to find any working answers on google.
Any help would be greatly appricated.