record output sound in python

放肆的年华 提交于 2019-11-28 19:52:42

You can install Soundflower, which allows you to create extra audio devices and route audio between them. This way you can define your system's output to the Soundflower device and read the audio from it using PyAudio.

You can also take a look at PyJack, an audio client for Jack.

unfortunately, theres no foolproof way to do it, but Audio Hijack and Wiretap are the best tools available for that.

I can give an answer by not using a programmatic way. Panel > Sound > Recording >> enabling stereo mix. This needs a driver support. I also found that this makes my real sound echo. At least this solves my problem.

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