python-sounddevice icon indicating copy to clipboard operation
python-sounddevice copied to clipboard

unable to import module

Open RieGo opened this issue 11 months ago • 1 comments

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.

RieGo avatar Jul 15 '23 07:07 RieGo

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.

HaujetZhao avatar Jan 19 '24 15:01 HaujetZhao