types-pyaudio
Typing stubs for pyaudio
What it is and what it does
types-pyaudio is a type stub package that provides type annotations for the pyaudio library. It allows static type checkers to understand the types and signatures of pyaudio's API, catching type errors during development rather than at runtime. The package is maintained as part of the typeshed project and is tested against mypy 1.20.0 and pyright 1.1.408.
You install it alongside pyaudio to enable type checking in your IDE or CI pipeline. It has no runtime dependencies and requires Python 3.10 or later. The stubs aim to cover pyaudio 0.2.* versions, allowing you to write type-safe code that uses pyaudio's audio functions.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses pyaudio for audio operations
- Catch type errors in audio processing code before runtime in a CI/CD workflow
- Get IDE autocomplete and type hints when writing code that calls pyaudio functions
- Validate that audio device configuration code passes static type analysis
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the pyaudio library, enabling static type checkers like mypy and pyright to validate code that uses pyaudio.
Yes, if you use pyaudio and want static type checking. Installation is frictionless, the package is actively maintained, and it's licensed permissively. Install it as a dev dependency alongside pyaudio to enable type safety in your audio code.
Install
types-pyaudio on PyPI
pip
pip install types-pyaudiouv
uv add types-pyaudiopoetry
poetry add types-pyaudioInstalling types-pyaudio
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project with recent releases.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-pyaudio
# In your code, import pyaudio normally
import pyaudio
# Type checkers will now understand pyaudio's types
audio = pyaudio.PyAudio()
Requires Python 3.10 or later
Verify before relying
- Whether these stubs cover all pyaudio 0.2.* versions or only specific patch releases
- Whether the stubs are automatically updated when pyaudio itself changes
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,598/month — #14,062 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pyaudio-0.2.16.20260508-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-grpcio-reflectionProvides type hints for grpcio-reflection,…
permissive · top 15,000 on PyPI
types-pysftpProvides type hints for the pysftp package,…
permissive · top 15,000 on PyPI
types-aiofilesProvides type hints for the aiofiles async file…
permissive · top 5,000 on PyPI
PyAudioPyAudio provides Python bindings for PortAudio…
permissive · top 5,000 on PyPI
types-pyserialProvides type hints for the pyserial library,…
permissive · top 5,000 on PyPI
types-pyperclipProvides type annotations for the pyperclip…
permissive · top 15,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
types-webencodingsProvides type hints for the webencodings…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
pydub-stubsProvides type stubs for Pydub, enabling static…
permissive · top 15,000 on PyPI