python-sounddevice, version 0.4.6 Play and Record Sound with Python Go next Installation Play and Record Sound with Python § This Python module provides bindings for the PortAudio library and a few convenience functions to play and record NumPy arrays containing audio signals.
The sounddevice module is available for Linux, macOS and Windows.
https://python-sounddevice.readthedocs.io/