Skip to main content

Cross-platform audio I/O with PortAudio

Project description

PyAudio

PyAudio provides Python bindings for PortAudio v19, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms, such as GNU/Linux, Microsoft Windows, and Apple macOS.

PyAudio is distributed under the MIT License.

Installation

See the INSTALLATION file in the source distribution for details. In summary, install PyAudio using pip on most platforms.

Windows

python -m pip install pyaudio

This installs the precompiled PyAudio library with PortAudio v19 19.7.0 included. The library is compiled with support for Windows MME API, DirectSound, WASAPI, and WDM-KS. It does not include support for ASIO. If you require support for APIs not included, you will need to compile PortAudio and PyAudio.

macOS

Use Homebrew to install the prerequisite portaudio library, then install PyAudio using pip:

brew install portaudio
pip install pyaudio

GNU/Linux

Use the package manager to install PyAudio. For example, on Debian-based systems:

sudo apt install python3-pyaudio

Alternatively, if the latest version of PyAudio is not available, install it using pip. Be sure to first install development libraries for portaudio19 and python3.

Building from source

See the INSTALLATION file.

Documentation & Usage Examples

License

PyAudio is distributed under the MIT License. See LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyAudio-0.2.14.tar.gz (47.1 kB view hashes)

Uploaded Source

Built Distributions

PyAudio-0.2.14-cp312-cp312-win_amd64.whl (164.1 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

PyAudio-0.2.14-cp312-cp312-win32.whl (144.8 kB view hashes)

Uploaded CPython 3.12 Windows x86

PyAudio-0.2.14-cp311-cp311-win_amd64.whl (164.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

PyAudio-0.2.14-cp311-cp311-win32.whl (144.6 kB view hashes)

Uploaded CPython 3.11 Windows x86

PyAudio-0.2.14-cp310-cp310-win_amd64.whl (164.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

PyAudio-0.2.14-cp310-cp310-win32.whl (144.6 kB view hashes)

Uploaded CPython 3.10 Windows x86

PyAudio-0.2.14-cp39-cp39-win_amd64.whl (164.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

PyAudio-0.2.14-cp39-cp39-win32.whl (144.6 kB view hashes)

Uploaded CPython 3.9 Windows x86

PyAudio-0.2.14-cp38-cp38-win_amd64.whl (164.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

PyAudio-0.2.14-cp38-cp38-win32.whl (144.6 kB view hashes)

Uploaded CPython 3.8 Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page