I have an application which plays some audio and also records a video+audio while that sound is playing. I would like to figure out a way to process the video so that the audio that was picked up by the microphone is removed from the resulting video.
For example, if I'm playing audioA, and then recording videoB with audioB (from the microphone), I want to somehow cancel out audioA from the resulting audioB, so that audioB is only the ambient noise and not the noise from the device speakers.
Any idea if there's a way to do this?
Bonus points if it can be done without any offline processing.