microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
913 stars 283 forks source link

Audio picked by Windows Microphone has White noise when heard in Mac #755

Open KarthikRichie opened 3 years ago

KarthikRichie commented 3 years ago

Describe the bug More white noise (like a scratchy audio) is being heard in the remote end (Mac) for calls initiated using Mixed reality webrtc 1.0.3/2.0.2 library. I checked my microphone and it has no issues. Other apps running in my machine that uses microphone doesn't have these issues when call is taken from Mac.

Local Windows -> Remote Windows -> works fine Local Windows -> Remote Mac -> has white noise

Expected behavior Remote end shouldn't hear any white noises for a better audio experience.

Environment

Peer 1:- Local Peer:- Windows UWP app Mixed reality webrtc 2.0.2

Peer 2:- Remote Peer:- Web Chrome Platform:- Mac OS Bigsur 11.3

Additional context I tried updating the following in device_audio_track_source.cpp in mrwebrtc project. But it didn't help either

// Create the audio track source cricket::AudioOptions options{}; options.auto_gain_control = ToOptional(init_config.auto_gaincontrol); options.echo_cancellation = true; options.delay_agnostic_aec = true; options.extended_filter_aec = true; options.noise_suppression = true; options.highpass_filter = true; rtc::scoped_refptr audio_source = pc_factory->CreateAudioSource(options); if (!audio_source) { RTC_LOG(LS_ERROR) << "Failed to create audio source from local audio capture device."; return Error(Result::kUnknownError);