I'm using Selenium in Python for a project and I was wondering if there was a way to record or stream audio that is being played in the browser. Essentially I want to use selenium to get the audio and pass it to my application in Python so that I can process it. 
Is there a way to do this in Selenium, or using another Python package? 
Ideally I would want to be able to get any audio playing in the browser window irregardless of the source.
There is no way to do it with just selenium, but it will be not so hard to implement it with python, just search python module or external program which suite your purpose
Selenium, streaming audio from browser