I would like to get raw data (optimally as a numpy array) from a PCM network audio stream for which I have an URL. The goal is to analyze the signal from the network stream in real-time.
There seem to be a lot of Python audio modules or wrappers around e.g. FFMPEG, but after quite an extensive search I am yet to find a single example of a complete pipeline.
For those familiar with OpenCV, I am looking for an audio counterpart of the OpenCV VideoCampture
class.
Any suggestions of modules to look at or code code snippets welcome!