Process audio data and use machine learning in Matrix creator

Is there a way (in Python preferably) to access raw data to process in in real time (or close) with custom libraries?

I want to be able to access the raw data, it can be on any channel or in the combined channel so I can introduce those samples into a previously trained machine learning model for classification. I don’t want to do speech recognition but other types of sounds.