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
-
Read the API Documentation, or generate it from the source using
sphinx
. -
Usage examples are in the
examples
directory of the source distribution, or see the project homepage.
License
PyAudio is distributed under the MIT License. See LICENSE.txt.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for PyAudio-0.2.14-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f2f1ba04e06ff95d80700a78967897a489c05e093e3bffa05a84ed9c0a7fa3 |
|
MD5 | 22c22def73adfdb7dc3711bc03acbee8 |
|
BLAKE2b-256 | b06ad25812e5f79f06285767ec607b39149d02aa3b31d50c2269768f48768930 |
Hashes for PyAudio-0.2.14-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fce4bcdd2e0e8c063d835dbe2860dac46437506af509353c7f8114d4bacbd5b |
|
MD5 | 2601dc2a4dbe201ec9d6cb22761be1cb |
|
BLAKE2b-256 | 8d458d2b76e8f6db783f9326c1305f3f816d4a12c8eda5edc6a2e1d03c097c3b |
Hashes for PyAudio-0.2.14-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbeb01d36a2f472ae5ee5e1451cacc42112986abe622f735bb870a5db77cf903 |
|
MD5 | 4c83ea6a05834572d4c3ebb7851f4c16 |
|
BLAKE2b-256 | 82d8f043c854aad450a76e476b0cf9cda1956419e1dacf1062eb9df3c0055abe |
Hashes for PyAudio-0.2.14-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506b32a595f8693811682ab4b127602d404df7dfc453b499c91a80d0f7bad289 |
|
MD5 | 85dab79be26685e64ab0d5c340e72820 |
|
BLAKE2b-256 | 7bf0b0eab89eafa70a86b7b566a4df2f94c7880a2d483aa8de1c77d335335b5b |
Hashes for PyAudio-0.2.14-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a166fc88d435a2779810dd2678354adc33499e9d4d7f937f28b20cc55893e83 |
|
MD5 | 1845fb57c54dde7ba95741fe6819f62e |
|
BLAKE2b-256 | 27bc719d140ee63cf4b0725016531d36743a797ffdbab85e8536922902c9349a |
Hashes for PyAudio-0.2.14-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126065b5e82a1c03ba16e7c0404d8f54e17368836e7d2d92427358ad44fefe61 |
|
MD5 | 1c3b9c8c98a01f700026c14663545d91 |
|
BLAKE2b-256 | 90901553487277e6aa25c0b7c2c38709cdd2b49e11c66c0b25c6e8b7b6638c72 |
Hashes for PyAudio-0.2.14-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 009f357ee5aa6bc8eb19d69921cd30e98c42cddd34210615d592a71d09c4bd57 |
|
MD5 | 97c1852fb1e5bca6ff15725938b62eae |
|
BLAKE2b-256 | ac9ecb59be3b49a6c1ee6350f27ca1abae2be2c7e643eac63cf10c399c4d6f71 |
Hashes for PyAudio-0.2.14-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f745109634a7c19fa4d6b8b7d6967c3123d988c9ade0cd35d4295ee1acdb53e9 |
|
MD5 | fac1008e491bfd143b92d1f5379cb4a8 |
|
BLAKE2b-256 | 054d8e96cb4e350870b4c8b73f18903804dd9c2d99792beeddf7e7f7c74ed1bd |
Hashes for PyAudio-0.2.14-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dac0d6d675fe7e181ba88f2de88d321059b69abd52e3f4934a8878e03a7a074 |
|
MD5 | 5ddcc47c45cfb6782a05e6440f50310b |
|
BLAKE2b-256 | 72d706eb308310281200e113910a675ea63483eeafcb1d851db8ef98393a3e33 |
Hashes for PyAudio-0.2.14-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858caf35b05c26d8fc62f1efa2e8f53d5fa1a01164842bd622f70ddc41f55000 |
|
MD5 | b81645da391553672169f77019bce78f |
|
BLAKE2b-256 | 313391d2294eec57699ac4d511f65480b097b89af38635cf1af90321e366d828 |