繁体   English   中英

在哪里使用噪声抑制器?

[英]where to use noise suppressor?

我正在开发我的第一个应用程序,它将使用手机麦克风录制音频。 我想应用一些声音预处理算法,比如#NoiseSuppressor,但不知道在哪里使用它? 是在录音时还是在录音完成后? 任何人都可以抽出宝贵的时间来帮助我。 任何帮助将不胜感激。

请注意,您只能在 AudioTrack 和 AudioRecord 中实时使用噪声消除,而不能与 MediaRecorder 一起使用。 要使用噪声抑制器:

public void enableNoiseSuppressor() {
  if (NoiseSuppressor.isAvailable() && noiseSuppressor == null) {
    noiseSuppressor = NoiseSuppressor.create(microphoneId);
    noiseSuppressor.setEnabled(true);
    Log.i(TAG, "NoiseSuppressor enabled");
  } else {
    Log.e(TAG, "This device don't support NoiseSuppressor");
  }
}

这里有一个更旧和更底层方法的例子https://twigstechtips.blogspot.com/2013/07/android-enable-noise-cancellation-in.html

暂无
暂无

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

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