node-web-audio-api
node-web-audio-api copied to clipboard
Prevent feedback and echo from speakers to enter the microphone stream
What is the best way to implement feedback and echo cancellation?
Hey,
Not completely sure of the question, do you mean:
-
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) -
the best algorithm or something? no idea...
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/