Python

How can I read an audio file in Python?

The soundfile module is a Python interface to an established cross-platform open source library, libsndfile, that can read a variety of different audio file formats.  Install pysoundfile with pip or anaconda, and see the documentation for examples.

By |2020-08-25T11:27:11-08:00August 25th, 2020||0 Comments

How can I record or playback audio in Python?

There are a couple of Python modules that will let you do this, I would suggest using sounddevice.  It can be installed with pip or conda:  python-sounddevice as is built on top of the platform independent PortIO package.  The documentation has lots of examples, ranging from very simple to sophisticated.

By |2020-08-25T11:27:21-08:00August 25th, 2020||0 Comments
Go to Top