Reroute analogue audio signal using Python

空扰寡人 提交于 2020-12-15 04:54:28

问题


I'm trying to use Python to 'mic-monitor', i.e., to playback the mic signal through the headphones in real-time, in addition to any other output signal from the PC.

I can accomplish this by amending my PC's playback settings, but I want to do it with Python, so that I can program a Raspberry Pi to mic-monitor my cheap headset for the PS4.

I can almost accomplish this with PyAudio or sounddevice, but there is a small but significant delay. From a previous question, I believe this is an unavoidable consequence of PortAudio converting the analogue signal to digital, then back to analogue again.

Is there a Python module I could use to simply reroute the analogue input in real-time, without any processing? Presumably this is what my PC is doing when I adjust the playback sound levels so that I can hear the mic input. I believe this microamplifier would achieve the same thing.

来源:https://stackoverflow.com/questions/64964997/reroute-analogue-audio-signal-using-python

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