Skip to content
 
 

Repository files navigation

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 ARM64

Important

These Windows ARM64 wheels are not official PyAudio releases. They are community-built binaries compiled from the official PyAudio source code and are not affiliated with, endorsed by, or officially supported by the PyAudio project or its maintainers.

Precompiled Windows ARM64 wheels are currently available for Python 3.13 only.

Download the latest Windows ARM64 .whl file from the Releases page and install it using:

python -m pip install pyaudio-0.2.15-cp313-cp313-win_arm64.whl

Windows x64

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.

Releases

Packages

Contributors

Languages