Replies

Comment on Getting Audio Visualizations working with Web Audio API:

Hi Max,

Make sure you aren’t connecting the AnalyserNode to your BaseAudioContext’s destination.

In some examples you find online, you might see a line like this:

1analyser.connect(audioCtx.destination);

Avoid that!

If you’re still hearing feedback/echoing after getting a media stream from getUserMedia, you might want to try specifying echoCancellation/noiseSuppression in yourMediaStreamConstraints config object like this:

1const config = {
2    video: false,
3    audio: {
4        deviceId: audioDevices.value,
5        autoGainControl: true,
6        echoCancellation: true,
7        noiseSuppression: true
8    }
9};