{"id":27494,"library":"types-pyaudio","title":"types-pyaudio","description":"Typing stubs for pyaudio. Provides type hints for pyaudio (portaudio bindings). Current version 0.2.16.20260408. Released as needed alongside typeshed updates.","status":"active","version":"0.2.16.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["stubs","type-hints","pyaudio","audio"],"install":[{"cmd":"pip install types-pyaudio","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"types-pyaudio is a stub-only package; it does not need to be imported directly.","symbol":"pyaudio","correct":"import pyaudio"}],"quickstart":{"code":"import pyaudio\n\np = pyaudio.PyAudio()\nprint(p.get_default_input_device_info())\np.terminate()","lang":"python","description":"Basic usage: instantiate PyAudio and get default device info."},"warnings":[{"fix":"pip install pyaudio","message":"types-pyaudio only provides type stubs; you must also install the runtime library pyaudio.","severity":"gotcha","affected_versions":"all"},{"fix":"Use # type: ignore on lines with known missing stubs.","message":"Stubs may not cover all pyaudio features or may be incomplete; type checker may still report errors on edge cases.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install types-pyaudio","cause":"types-pyaudio not installed; PyCharm/Pyright cannot resolve type hints.","error":"Cannot find reference 'PyAudio' in '__init__.pyi'"},{"fix":"pip install pyaudio","cause":"Only types-pyaudio installed, not the runtime module.","error":"ModuleNotFoundError: No module named 'pyaudio'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}