Skip to content

Official documentation

Play and Record Sound with Python: Usage (python-sounddevice)

Matthias Geier, python-sounddevice documentation, n.d.

Read the original

Read on October 17, 2026

What it is
The usage guide of the python-sounddevice package, which records and plays audio through PortAudio into NumPy arrays. It shows how to record from the default input device.
How much weight it carries
Official package documentation, read on 2026-10-17. It covers capture, not recognition: the recorded array still has to be passed to a model at the right sample rate.

Facts taken from this source

Play and Record Sound with Python: Usage (python-sounddevice) | Yap