Echo cancellation on recording/mixing
mixAudioStream(stream) {
if (stream.getAudioTracks().length > 0 && this.audioDestination) {
this.audioContext?.createMediaStreamSource(stream).connect(this.audioDestination);
}
},
The reason I want to do this is that I have a need to record 2 inputs from the same computer for 2 people talking to each other face to face, with a camera & mic facing each person.
The problem, I think, with echo isn’t feedback from any speaker, because the echo is there when wearing headphones. I think the echo is from different latency lengths from different mics.
I know there are other ways of dealing with this. The simplest way is to have 1 shared mic between the two people. That’s probably what I’ll use. The other slightly more complex way is to use 2 analog mics combined into the same input. Another way would be to apply echo cancellation after the video is recorded or processed.
Thanks.
Read more here: Source link