python-sounddevice
python-sounddevice copied to clipboard
:sound: Play and Record Sound with Python :snake:
I've installed sounddevice on a raspberry 5 in a venv environment. When I run my program it errors on: import sounddevice as sd - " module not found"
Thanks to @timhoffm for reminding me of that option (https://github.com/sphinx-doc/sphinx/pull/12944#discussion_r1788952622)!
Remove setup.py and move to pyproject.toml
Hi, I recently tried using sounddevice in combination with the multiprocessing module. This crashes with a PortAudioError: ``` sounddevice.PortAudioError: Error opening OutputStream: Unanticipated host error [PaErrorCode -9999]: 'Audio Hardware: Unknown...
stream.time raises when the time is 0.0 (PortAudioError: Error getting stream time.. on RaspberyPI)
When I run: ```python self.stream = sd.InputStream(device=self.device, channels=1, samplerate=self.fs, blocksize=self.block_size, callback=cb) self.stream.start() self.stream.time ``` on my laptop it works.. but when I run it on a raspbery pi I get:...
... to avoid "incompatible override" warning from Pyright.
On the `windows` platform, `Exception` error messages in Python 3.8 or Python 3.9 will be suppressed
```py import sounddevice 1 / 0 ``` As long as I am on the Windows platform and the Python version is lower than 3.10, when executing this code, the program...
It's end of life ~and it doesn't seem to be supported anymore by GitHub Actions~. [UPDATE: for now, it is still supported on the `ubuntu-22.04` image, see #584]
I can't figure out if the bug is somewhere in sounddevice, or in pulseaudio, portaudio, alsa, rpiOS, rpi5 hardware or my audio USB dongle. But the naive approach with [play_file.py](https://python-sounddevice.readthedocs.io/en/0.3.14/_downloads/90a0c4d9ac1f4a3a462f7792a60d6eaa/play_file.py)...
### Synopsis I have a project `SeaPlayer`. There I use my add-on over `sounddevice` - `seaplayer-audio`. I am faced with the problem of different sampling rates. ***For example***: the audio...