spatialaudio / python-sounddevice

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

Python: sd.query_devices() can't update audio device [Mac] #443

Closed KiDo-Ruan closed 1 year ago

KiDo-Ruan commented 1 year ago

I install portaudio by homebrew (brew install portaudio) then I use sounddevice.query_devices() to get all available device on my Mac, but when I change device and recall sounddevice.query_devices() that not update new device. I tried to use this : sd._terminate() Change device: sd._initialize() but I can't update new device when I recall sounddevice.query_devices()

How do I fix it in my project? Thanks for your answer!

mgeier commented 1 year ago

The hardware devices are managed by the underlying PortAudio library.

If you device is not working, you can ask for support over there: http://portaudio.com/contacts.html