types-pyaudio
raw JSON → 0.2.16.20260408 verified Fri May 01 auth: no python
Typing stubs for pyaudio. Provides type hints for pyaudio (portaudio bindings). Current version 0.2.16.20260408. Released as needed alongside typeshed updates.
pip install types-pyaudio Common errors
error Cannot find reference 'PyAudio' in '__init__.pyi' ↓
cause types-pyaudio not installed; PyCharm/Pyright cannot resolve type hints.
fix
pip install types-pyaudio
error ModuleNotFoundError: No module named 'pyaudio' ↓
cause Only types-pyaudio installed, not the runtime module.
fix
pip install pyaudio
Warnings
gotcha types-pyaudio only provides type stubs; you must also install the runtime library pyaudio. ↓
fix pip install pyaudio
gotcha Stubs may not cover all pyaudio features or may be incomplete; type checker may still report errors on edge cases. ↓
fix Use # type: ignore on lines with known missing stubs.
Imports
- pyaudio
import pyaudio
Quickstart
import pyaudio
p = pyaudio.PyAudio()
print(p.get_default_input_device_info())
p.terminate()