Problem
On macOS, the built-in mic picks up speaker audio even in mic-only mode because raw PortAudio capture has no echo cancellation. On Windows and Linux, drivers typically apply AEC automatically, so mix mode is needed on macOS to capture both voice and speaker output — but this introduces duplicate audio artifacts.
Proposed Solution
Use Apple's VoiceProcessingIO audio unit to enable acoustic echo cancellation (AEC) on mic capture. This would make mic-only and mix mode behave identically across all platforms.
References
Problem
On macOS, the built-in mic picks up speaker audio even in mic-only mode because raw PortAudio capture has no echo cancellation. On Windows and Linux, drivers typically apply AEC automatically, so mix mode is needed on macOS to capture both voice and speaker output — but this introduces duplicate audio artifacts.
Proposed Solution
Use Apple's VoiceProcessingIO audio unit to enable acoustic echo cancellation (AEC) on mic capture. This would make mic-only and mix mode behave identically across all platforms.
References
SounddeviceAudioSourceuses PortAudio which has no AEC support on macOS