问题
Using python - I want to be able to sample in 2 second chunks, the audio that is being played through the output audio device on the computer.
My goal is to be able to detect a specific noise that comes through the speakers of a PC using Python, and this is the first step in doing so.
I have taken a look at the sounddevice docs but can't seem to determine the correct way to achieve this behaviour, the documentation doesn't appear to cover this.
Please can somebody help out?
It appears I am looking for some form of audio lookback recording in python.
来源:https://stackoverflow.com/questions/58780206/using-python-how-can-i-sample-all-audio-being-sent-to-the-speakers-via-audio-loo