setLocalVoiceEqualization method

Future<int> setLocalVoiceEqualization(
  1. int bandFrequency,
  2. int bandGain
)

设置本地语音音效均衡,即自定义设置本地人声均衡波段的中心频率。

注意:该方法在加入房间前后都能调用,通话结束后重置为默认关闭状态。

bandFrequency 频谱子带索引,取值范围是 0-9,分别代表 10 个频带,对应的中心频率是 31,62,125,250,500,1k,2k,4k,8k,16k Hz。 bandGain 每个 band 的增益,单位是 dB,每一个值的范围是 -15,15,默认值为 0。

Implementation

Future<int> setLocalVoiceEqualization(int bandFrequency, int bandGain) async {
  IntValue reply =
      await _api.setLocalVoiceEqualization(SetLocalVoiceEqualizationRequest()
        ..bandFrequency = bandFrequency
        ..bandGain = bandGain);
  return reply.value ?? -1;
}