quickblox-javascript-sdk
                                
                                 quickblox-javascript-sdk copied to clipboard
                                
                                    quickblox-javascript-sdk copied to clipboard
                            
                            
                            
                        Echo/Noise in Quickblox audio call
I have develop the videochat in Angular. I can refer Javascript SDK Sample. The sample is working fine. But when i developing the example in angular I get a lot of noise and echo in audio call. Video Call Working perfectly there is no noise or echo. Why is that so in audio call?
can you send your snapshot of the code (the function of getUserMedia) then only we can get to know what you are missed?
thank you
var mediaParams = { audio: true, video: true, options: { muted: true, mirror: true, }, elemId: "localVideo", };
you need to mention muted as a true else it will lead to echoing your voice ..
Noise webrtc defaulty suppress the noise
Tahnk you for your reply.
private getMediaParams(isAudio: boolean, localVideo: string): Object{ let mediaParams = {}; console.log("ISAUDIO--->",isAudio) if(isAudio){ mediaParams = { audio: true, video: false, options: { muted: true, // mirror: true } }; } else { mediaParams = { audio: true, video: true, elemId: localVideo, options: { muted: true, mirror: true } }; }
    return mediaParams;
}
i think you are facing this issues only on audio call?
yes. Video call is working perfectly. no issues. audio call only having the echo & noise issue
mediaParams = { audio: true, video: true, elemId: localVideo, options: { muted: true, }
you also need to mentioned elemId for audio call as well
in order to minimized the echoing we need to attach the stream to one element then only we can muthed the stream
Or else you can do another way get the stream from getUsermedia and mute the stream object
ok . Thank You. I will try this.
Hai I was tried this but it also not working. any other solutions. You have any code for this.
Hi @kjp90 ,
You can pass MediaTrackConstraints for audio and / or video key(s)
const mediaParams = {
  audio: {
    echoCancellation: true,
    noiseSuppression: true
  },
  video: false,
  options: { muted: true }
}