I've done a little digging and most of the python interfaces to PulseAudio seem to deal with sound server control, not audio data. I want to get data from numpy arrays out to speakers via PulseAudio and get sound from mic inputs into numpy arrays the same way. Any suggestions as to how to approach this?
python-pulseaudio uses ctypes and appears to have everything you need. You'll have to take care with the types of the numpy arrays and use their buffer interfaces but it should be doable.
I think you might be happier using ALSA as a layer above pulseaudio; most apps appear to work that way. PyAlsaAudio appears to have what you need there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With