pyPortAudio
A Python interface to the PortAudio multiplatform audio I/O library
PortAudio is an excellent multiplatform library for playing and
recording sound, chosen because of its simplicity and generic usefulness.
This Python wrapper adds the ability to read and decode non-raw audio
files (eg WAV files), and therefore requires the libsndfile sound file conversion
library. For convenience of windoze users, you can download a windoze
binary build of libsndfile (containing the DLL, header file and link
library)
** NEWS FLASH **
pyPortAudio is deprecated. Too many problems with the pablio layer in
Portaudio, plus various platform-specific horror stories. Please try fastaudio
instead (see below)
Downloads:
- pyPortAudio python modules - pyPortAudio.tar.gz
- libsndfile, precompiled for windoze - here.
- fastaudio.tar.gz - an alternative
to pyPortAudio that features convenient non-blocking calls, plus
far greater stability.
Contains Pyrex source code, required sndfile DLL, plus pre-built
windows binary.
You'll need Pyrex
if you want to build this from source (Pyrex is total heaven for writing
Python/C wrappers).
Prerequisites:
- PortAudio
sound I/O library - strictly PortAudio v18 only
- libsndfile - available
with most Linux distributions. Precompiled version for Windows
available (see above)
Warnings:
- This is alpha quality code. If it doesn't work with your setup,
please email me at david at freenet dot org dot nz
- This wrapper only supports mono or stereo. Multichannel is not
supported at this time
- Patches, suggestions etc welcome. With patches, please do not
complicate the basic interface
Bugs:
Links
Privacy Policy