AEC3 suppress NearEnd audio when FarEnd has Noise

467 views Asked by At

I use Chromium's AEC3 for Acoustic Echo Cancellation for my application . Echo Cancellation works fine . But whenever a noise played in speaker , NearEnd audio ( voice from My Microphone ) suppresses .

I uses the default configuration used here https://chromium.googlesource.com/external/webrtc/+/refs/heads/main/api/audio/echo_canceller3_config.h

SampleRate : 48k

My code :

     speaker->CopyFrom(&input,*config);
     speaker->SplitIntoFrequencyBands();
     echo->AnalyzeRender(speaker);

     mic->CopyFrom(&input,*config);
     mic->SplitIntoFrequencyBands();
     echo->AnalyzeCapture(mic);       
     echo->ProcessCapture(mic,false);
     mic->MergeFrequencyBands();
     mic->CopyTo(*config,&output);

is there anything i am doing wrong or need to change any configuration ?.

Any help would be appreciable , Thanks in Advance .

0

There are 0 answers