简体   繁体   English

在Android上使用WebRtc_Aecm时,也会取消与回声重叠的音频

[英]Audio is also be cancelled which overlap with acoustic echo when using WebRtc_Aecm on Android

As an example: 举个例子:

PCM captured by microphone: 麦克风捕获的PCM:

1, {2,3} {4,5} {6,7}, 8, 9, 1,{2,3} {4,5} {6,7},8,9,

{A,B} means A is the audio data I really want to capture, B is the echo at the same time. {A,B}表示A是我真正想要捕获的音频数据,B是同时的回声。 A and B both captured by mic at the same time. A和B都同时被麦克风捕获。

The issue I encounter: the audio 2, 4 and 6 are also cancelled while cancelling 3, 5 and 7. 我遇到的问题:取消3、5和7时,音频2、4和6也被取消了。

This is my code: 这是我的代码:

WebRtcAecm_Init( &aecm , 8000 );
While ( aecProcessing )
{
    WebRtcAecm_BufferFarend( speakerBuffer );
    WebRtcAecm_Process( aecm , micBuffer , NULL , aecBuffer , 160 , 200 );
}
  1. if you run a loopback testing, the normal voice can be cancelled partially. 如果运行回送测试,则可以部分取消正常声音。
  2. don't use constant delay like 200ms, cus' this delay is always changes, you should estimate it every 1 second or shorter. 不要使用200ms之类的恒定延迟,因为此延迟总是变化的,您应该每1秒或更短的时间估算一次。

EDIT 编辑

  1. please make clear what is echo and what is normal voice . 请弄清楚what is echowhat is normal voice

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM