Here is the error:
Traceback (most recent call last):
File "D:\Desktop\Blink\blinkpulse.py", line 26, in <module>
frames_per_buffer=1024)
File "D:\Python27\lib\site-packages\pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "D:\Python27\lib\site-packages\pyaudio.py", line 441, in __init__
self._stream = pa.open(**arguments)
IOError: [Errno -9998] Invalid number of channels
And these are the devices:
Device 0: Microsoft Sound Mapper - Input
Device 1: Headset Microphone (HyperX 7.1
Device 2: Microsoft Sound Mapper - Output
Device 3: Headset Earphone (HyperX 7.1 Au
This is the snippet if the code:
# Uncomment and set this using find_input_devices.py
# if default input device is not correct
input_device_index=3, \
I tested all of the devices and it seems that it defaults to Device 0.
Device 1 (My microphone also works and it’s also pretty cool :D)
Device 2 and 3 give the same invalid number of channels error.
Here is the Headset Earphone: