python-sounddevice
python-sounddevice copied to clipboard
:sound: Play and Record Sound with Python :snake:
Hello! I have created an flask api app that is supposed to send an audio stream as a response to client's post request. Client sends input text, my app receives...
Whenever I tried and use `sounddevice.play()` with an input device I get an `Error opening OutputStream: Invalid number of channels` error (which I think is caused by there being no...
Hello, According to the documentation, setting blocksize=0 in a stream is preferable, and may result in a variable block size. But then, the docstring for Stream.read says: _high performance applications...
Hello! Thank you for the sounddevice library. It's very nice & handy. However I have the following issue: I run a very simple program that continuously records **10minute arrays**, 1...
Hi, When working on a Mac, adding the argument `never_drop_input=True` to a Stream causes the error `PortAudioError: Error opening Stream: Invalid flag [PaErrorCode -9995]` However on a Windows instance, the...
`python -m sounddevice` is used to see the list of devices. I think that's a bit awkward, because the command is not descriptive. I know that it's the only command...
I have found that when running the following code with the non-blocking callback function, it blocks other scripts' audio outputs. This script should only be listening on the input side...
Hello, Thank you very much for your work on the sound using python. I have posted a question in Stackoverflow: https://stackoverflow.com/questions/62710650/how-to-create-a-surround-effect-using-python-by-controlling-the-volume-of-speake. It would be a pleasure if you have ideas...
The status in a callback provides information on overflow and underflow issues. Sometimes these issues are acceptable depending on how the callback wants to use the stream. For example, input...
I found that, occasionally (4/10 times), a crack could be heard when the stream was closed. I was able to resolve this (0/10 tries) by writing a frame of zeros...