Assuming you imported matplotlib.pyplot as plt, try plt.ion() at the start of your code. This enables interactive plotting. If this does not work, you may need to change your backend, See the matplotlib FAQ for details on this question.
How can I record or playback audio in Python?mrochadmin2020-08-25T11:27:21-08:00
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.
How can I read an audio file in Python?mrochadmin2020-08-25T11:27:11-08:00
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.
How can I have PyCharm display plots in a stand-alone window?mrochadmin2020-08-25T11:27:47-08:00