It doesn't seem to me that module-echo-cancel in Pulseaudio completely meets the requirements here (only one source), but it looks close, and seems in general like where you would implement something like this.
1. https://www.freedesktop.org/wiki/Software/PulseAudio/Documen...