spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
982 stars 145 forks source link

sounddevice.PortAudioError: Error opening Stream: Device unavailable [PaErrorCode -9985] #390

Open Vanshaj712 opened 2 years ago

Vanshaj712 commented 2 years ago

sounddevice.PortAudioError: Error opening Stream: Device unavailable [PaErrorCode -9985] This is my Windows machine with X86 and windows 10

python client.py client started


Traceback (most recent call last): File "client.py", line 34, in sdstream = sd.Stream(samplerate=44100, channels=1, dtype='float32') File "C:\Users\milan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sounddevice.py", line 1795, in init **_remove_self(locals())) File "C:\Users\milan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sounddevice.py", line 895, in init 'Error opening {}'.format(self.class.name)) File "C:\Users\milan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sounddevice.py", line 2741, in _check raise PortAudioError(errormsg, err) sounddevice.PortAudioError: Error opening Stream: Device unavailable [PaErrorCode -9985]

mgeier commented 2 years ago

Please have a look at https://python-sounddevice.readthedocs.io/CONTRIBUTING.html#reporting-problems and edit your question accordingly.