spatialaudio / python-sounddevice

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

unable to import module #480

Open RieGo opened 11 months ago

RieGo commented 11 months ago

Hello, just discovered, that this module doesn't work on my system (W11, Scarlett Solo Audio Device)

whenever I import this module, python just silently quits. Tested on Python 3.10.10 and Python 3.11.1

This is a big deal, because whenever another module depends on this, whatever you're trying to run just silently quits. I don't get any error message and i can't even catch this as import exception.

If i can help somehow please let me know. thanks.

HaujetZhao commented 5 months ago

Download and decompress sherpa-onnx-portaudio.zip , use the sherpa-onnx-portaudio.dll to replace libportaudio64bit.dll of sounddevice module. (remember renaming)

I don't know why, but this works.

I think it's because the libportaudio64bit.dll that sounddevice contains is not compiled under windows system.