node-web-audio-api icon indicating copy to clipboard operation
node-web-audio-api copied to clipboard

Prevent feedback and echo from speakers to enter the microphone stream

Open remorses opened this issue 3 months ago • 2 comments

What is the best way to implement feedback and echo cancellation?

remorses avatar Sep 04 '25 15:09 remorses

Hey,

Not completely sure of the question, do you mean:

  1. the best place (in terms of code architecture)?
    In that case that would certainly be within the rust library https://github.com/orottier/web-audio-api-rs (PR open I guess)

  2. the best algorithm or something? no idea...

b-ma avatar Sep 04 '25 20:09 b-ma

Echo and noise suppression are part of the https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints which we have partly implemented at https://docs.rs/web-audio-api/latest/web_audio_api/media_devices/struct.MediaTrackConstraints.html I think it's a reasonable request to include them in the rust library - even though it is not strictly part of the web audio api. Mainly because it will be very tricky to implement them yourself in the JS application as end user. We could have a look at https://crates.io/crates/aec-rs/

orottier avatar Sep 05 '25 07:09 orottier