Using Python how can I sample all audio being sent to the speakers via audio loopback

被刻印的时光 ゝ 提交于 2020-01-06 08:10:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!