Audio I / O using Numpy / Scipy and PulseAudio

I did a bit of work, and most of the python interfaces for PulseAudio seem to deal with sound server control, not audio data. I want to get data from numpy arrays to speakers through PulseAudio and get sound from mic inputs into numpy arrays in the same way. Any suggestions on how to approach this?

+4
source share
1 answer

python-pulseaudio uses ctypes and appears to have everything you need. You will have to take care of the types of numpy arrays and use their buffer interfaces, but this should be doable.

I think you can be happier using ALSA as the layer above pulseaudio; most applications seem to work that way. PyAlsaAudio looks like what you need there.

+3
source

All Articles