python-sounddevice
python-sounddevice copied to clipboard
:sound: Play and Record Sound with Python :snake:
Implements the necessary functionality suggested in one of the discussions in #130. Loads a user-specified PortAudio binary during runtime, by either providing its filename as usual or providing its absolute...
Today I met a Win10 22H2 computer which can not import sounddevice (0.4.6) neither with Python3.8 nor Python3.10. It's when the code run to `_check(_lib.Pa_Initialize(), 'Error initializing PortAudio')` that the...
It would be nice to be able to specify the location of the portaudio lib for people that want to use a specific location and/or version. At present the code...
This PR provides a very simple and minimal workaround for loading an alternative PortAudio Windows binary compiled without ASIO, to address issue #496. Since this issue only affects Windows, as...
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 import sounddevice as sd print(sd.query_device) # some device info listed # then plug some new device sd._terminate() sd._initialize() print(sd.query_device) # device info list unchanged sd._terminate() sd._ffi.dlclose(sd._lib) sd._lib = sd._ffi.dlopen(sd._libname)...
Enhancement Request: Integrate Playback Status Check into Simple `play`/`stop` API in `sounddevice`
## Summary This issue proposes integrating a feature for checking the playback status into the simpler `play`/`stop` API of the `sounddevice` module. While the module does offer more robust methods...
When I run this minimal example, everything works fine. ```py import sounddevice as sd import numpy as np FS = 44100 sd.default.device = 45 # This is an ASIO device...
I am new to sound device and rtmixer, I have the following aggregate device (2 USB mic +Apple EarPods built-in mic) in MacOSX: Available Input Devices: {'name': 'Aggregate Device', 'index':...
On my 2019 MacBook Pro running macOS 13.6.1, the following script: import sounddevice as sd settings = {'device': 1, 'channels': 1, 'samplerate': 44100, 'dtype': 'int16'} sd.check_input_settings(**settings) sd.rec(frames=settings['samplerate'], blocking=True, **settings) (you...