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
File details
Details for the file PyAudio-0.2.14.tar.gz
.
File metadata
- Download URL: PyAudio-0.2.14.tar.gz
- Upload date:
- Size: 47.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78dfff3879b4994d1f4fc6485646a57755c6ee3c19647a491f790a0895bd2f87 |
|
MD5 | c7234ad1e84c945374c1686b7915ed1a |
|
BLAKE2b-256 | 261d8878c7752febb0f6716a7e1a52cb92ac98871c5aa522cba181878091607c |
File details
Details for the file PyAudio-0.2.14-cp313-cp313-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 173.7 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692d8c1446f52ed2662120bcd9ddcb5aa2b71f38bda31e58b19fb4672fffba69 |
|
MD5 | 1d7c699d2bcb13999feb2223832330a5 |
|
BLAKE2b-256 | a58b7f9a061c1cc2b230f9ac02a6003fcd14c85ce1828013aecbaf45aa988d20 |
File details
Details for the file PyAudio-0.2.14-cp313-cp313-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp313-cp313-win32.whl
- Upload date:
- Size: 151.0 kB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95328285b4dab57ea8c52a4a996cb52be6d629353315be5bfda403d15932a497 |
|
MD5 | e538c00aef7748748bae8ec66cecfaa7 |
|
BLAKE2b-256 | 3a7766cd37111a87c1589b63524f3d3c848011d21ca97828422c7fde7665ff0d |
File details
Details for the file PyAudio-0.2.14-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 164.1 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f2f1ba04e06ff95d80700a78967897a489c05e093e3bffa05a84ed9c0a7fa3 |
|
MD5 | 22c22def73adfdb7dc3711bc03acbee8 |
|
BLAKE2b-256 | b06ad25812e5f79f06285767ec607b39149d02aa3b31d50c2269768f48768930 |
File details
Details for the file PyAudio-0.2.14-cp312-cp312-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp312-cp312-win32.whl
- Upload date:
- Size: 144.8 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fce4bcdd2e0e8c063d835dbe2860dac46437506af509353c7f8114d4bacbd5b |
|
MD5 | 2601dc2a4dbe201ec9d6cb22761be1cb |
|
BLAKE2b-256 | 8d458d2b76e8f6db783f9326c1305f3f816d4a12c8eda5edc6a2e1d03c097c3b |
File details
Details for the file PyAudio-0.2.14-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 164.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbeb01d36a2f472ae5ee5e1451cacc42112986abe622f735bb870a5db77cf903 |
|
MD5 | 4c83ea6a05834572d4c3ebb7851f4c16 |
|
BLAKE2b-256 | 82d8f043c854aad450a76e476b0cf9cda1956419e1dacf1062eb9df3c0055abe |
File details
Details for the file PyAudio-0.2.14-cp311-cp311-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp311-cp311-win32.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506b32a595f8693811682ab4b127602d404df7dfc453b499c91a80d0f7bad289 |
|
MD5 | 85dab79be26685e64ab0d5c340e72820 |
|
BLAKE2b-256 | 7bf0b0eab89eafa70a86b7b566a4df2f94c7880a2d483aa8de1c77d335335b5b |
File details
Details for the file PyAudio-0.2.14-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 164.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a166fc88d435a2779810dd2678354adc33499e9d4d7f937f28b20cc55893e83 |
|
MD5 | 1845fb57c54dde7ba95741fe6819f62e |
|
BLAKE2b-256 | 27bc719d140ee63cf4b0725016531d36743a797ffdbab85e8536922902c9349a |
File details
Details for the file PyAudio-0.2.14-cp310-cp310-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp310-cp310-win32.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126065b5e82a1c03ba16e7c0404d8f54e17368836e7d2d92427358ad44fefe61 |
|
MD5 | 1c3b9c8c98a01f700026c14663545d91 |
|
BLAKE2b-256 | 90901553487277e6aa25c0b7c2c38709cdd2b49e11c66c0b25c6e8b7b6638c72 |
File details
Details for the file PyAudio-0.2.14-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 164.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 009f357ee5aa6bc8eb19d69921cd30e98c42cddd34210615d592a71d09c4bd57 |
|
MD5 | 97c1852fb1e5bca6ff15725938b62eae |
|
BLAKE2b-256 | ac9ecb59be3b49a6c1ee6350f27ca1abae2be2c7e643eac63cf10c399c4d6f71 |
File details
Details for the file PyAudio-0.2.14-cp39-cp39-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp39-cp39-win32.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f745109634a7c19fa4d6b8b7d6967c3123d988c9ade0cd35d4295ee1acdb53e9 |
|
MD5 | fac1008e491bfd143b92d1f5379cb4a8 |
|
BLAKE2b-256 | 054d8e96cb4e350870b4c8b73f18903804dd9c2d99792beeddf7e7f7c74ed1bd |
File details
Details for the file PyAudio-0.2.14-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 164.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dac0d6d675fe7e181ba88f2de88d321059b69abd52e3f4934a8878e03a7a074 |
|
MD5 | 5ddcc47c45cfb6782a05e6440f50310b |
|
BLAKE2b-256 | 72d706eb308310281200e113910a675ea63483eeafcb1d851db8ef98393a3e33 |
File details
Details for the file PyAudio-0.2.14-cp38-cp38-win32.whl
.
File metadata
- Download URL: PyAudio-0.2.14-cp38-cp38-win32.whl
- Upload date:
- Size: 144.6 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858caf35b05c26d8fc62f1efa2e8f53d5fa1a01164842bd622f70ddc41f55000 |
|
MD5 | b81645da391553672169f77019bce78f |
|
BLAKE2b-256 | 313391d2294eec57699ac4d511f65480b097b89af38635cf1af90321e366d828 |