setLocalVoiceEqualization abstract method

Future<void> setLocalVoiceEqualization({
  1. required AudioEqualizationBandFrequency bandFrequency,
  2. required int bandGain,
})

Sets the local voice equalization.

  • bandFrequency Index of the frequency band. The range is 0,9, representing 10 frequency bands. The corresponding center frequencies are 31, 62, 125, 250, 500, 1k, 2k, 4k, 8k, 16k Hz. See AudioEqualizationBandFrequency.
  • bandGain Gain of each band in dB. The range for each value is -15,15, with a default value of 0.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setLocalVoiceEqualization(
    {required AudioEqualizationBandFrequency bandFrequency,
    required int bandGain});