问题
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