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

AEC 延迟估计 #11

Open
gxpzy opened this issue Apr 18, 2024 · 0 comments
Open

AEC 延迟估计 #11

gxpzy opened this issue Apr 18, 2024 · 0 comments

Comments

@gxpzy
Copy link

gxpzy commented Apr 18, 2024

文章AEC 流程解析中延迟估计方法为WebRtc_DelayEstimatorProcessFloat,但看代码只是用于logging
https://github.com/Ryuk17/SpeechAlgorithms/blob/master/WebRTC_AEC/src/aec_core.c#L896

if (aec->delay_logging_enabled) {
    int delay_estimate = 0;
    if (WebRtc_AddFarSpectrumFloat(
            aec->delay_estimator_farend, abs_far_spectrum, PART_LEN1) == 0) {
      delay_estimate = WebRtc_DelayEstimatorProcessFloat(
          aec->delay_estimator, abs_near_spectrum, PART_LEN1);
      if (delay_estimate >= 0) {
        // Update delay estimate buffer.
        aec->delay_histogram[delay_estimate]++;
      }
    }
  }
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

1 participant