Open dzdem opened 1 year ago
Using different hardware devices simultaneously can be a bit of a challenge, depending on the operating system. See for example https://github.com/spatialaudio/python-sounddevice/issues/465#issuecomment-1504343671 and the linked discussion https://github.com/spatialaudio/python-sounddevice/issues/338#issuecomment-867131063.
I am trying to measure the impulse response of my laptop's loudspeaker using sounddevice. I want to use my own laptop's speaker as the output device, and an external microphone array as the input device. I am using an RME sound card for the microphone array, which uses the MADIface ASIO driver. I want to get the raw audio from the laptop speakers so I am using ASIO4ALL as the driver for laptop speakers. But whenever I run my code, I get the following error:
PortAudioError: Error opening Stream: Illegal combination of I/O devices [PaErrorCode -9993]
I couldn't find anything about this specific error anywhere on the internet. Source code for sounddevice also doesn't show anything. Unfortunately I cannot share my code because of the privacy policy of the company. Can someone please explain what might be the problem here?