python-sounddevice
python-sounddevice copied to clipboard
:sound: Play and Record Sound with Python :snake:
Hello! I have a big doubt, after trying several of my own codes and the examples in the repository, I can't adapt the code from the **rec_unlimited.py** file. My idea...
I'm trying to achieve something like this using sounddevice `Read stream from mic` -> `send to the server using socket` -> `processing on server` -> `return the processed audio` ->...
`python3 play_file.py file.wav ` MemoryError: Cannot allocate write+execute memory for ffi.callback(). You might be running on a system that prevents this. For more information, see https://cffi.readthedocs.io/en/latest/using.html#callbacks
I have two macbooks, one with an intel processor and the other with M1 processor. I am using a standard microphone. Sounddevice shows with the standard microphone in both cases...
Really like sounddevice as use the callback with tensorflow audio classification quite a lot, but I am stuck on how to implement the callback methods with say a asyncio co-routine...
When I am listing devices with sound device, I am missing my Desk Digital Audio microphone, it only shows output (0in, 2out)! ``` user@ubuntu:~$ python -m sounddevice 0 HDA Intel...
Context: Linux 5.15.23, python 3.8.12, sounddevice 0.4.3 I'm using sounddevice + SoundFile for playback of short WAV files. I need no-blocking operation so I use callback in RawOutputStream. Playback works...
Code: ```py def open_stream(index: int, stereo: bool, is_input: bool) -> Union[InputStream, OutputStream]: if is_input: return InputStream(device=index, channels=1 + stereo, latency=LATENCY, samplerate=48000, blocksize=1024, dtype='float32') else: return OutputStream(device=index, channels=1 + stereo, latency=LATENCY,...
Hello, I tried `python-sounddevice` for playing audio and recording audio using the [`play_file.py`](https://github.com/spatialaudio/python-sounddevice/blob/a56cdb96c9c8e3d23b877bbcc7d26bd0cda231e0/examples/play_file.py) and the [`rec_unlimited.py`](https://github.com/spatialaudio/python-sounddevice/blob/a56cdb96c9c8e3d23b877bbcc7d26bd0cda231e0/examples/rec_unlimited.py) examples with minor modification and they all worked fine. However, when I tried the...