Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Echo/Noise in Quickblox audio call #410

Open
kjp90 opened this issue Mar 9, 2021 · 9 comments
Open

Echo/Noise in Quickblox audio call #410

kjp90 opened this issue Mar 9, 2021 · 9 comments

Comments

@kjp90
Copy link

kjp90 commented Mar 9, 2021

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?

@austin92jus
Copy link

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

@austin92jus
Copy link

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

@kjp90
Copy link
Author

kjp90 commented Mar 23, 2021

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;
}

@austin92jus
Copy link

i think you are facing this issues only on audio call?

@kjp90
Copy link
Author

kjp90 commented Mar 23, 2021

yes. Video call is working perfectly. no issues. audio call only having the echo & noise issue

@austin92jus
Copy link

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

@kjp90
Copy link
Author

kjp90 commented Mar 23, 2021

ok . Thank You. I will try this.

@kjp90
Copy link
Author

kjp90 commented Mar 23, 2021

Hai I was tried this but it also not working. any other solutions. You have any code for this.

@ghost
Copy link

ghost commented Oct 5, 2021

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 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants