setLocalVoiceEqualization method

  1. @override
Future<void> setLocalVoiceEqualization(
  1. AudioEqualizationBandFrequency bandFrequency,
  2. int bandGain
)

Sets the local voice equalization effect.

Parameter bandFrequency Sets the band frequency. The value ranges between 0 and 9; representing the respective 10-band center frequencies of the voice effects, including 31, 62, 125, 500, 1k, 2k, 4k, 8k, and 16k Hz. See AudioEqualizationBandFrequency.

Parameter bandGain Sets the gain of each band (dB). The value ranges between -15 and 15. The default value is 0.

Implementation

@override
Future<void> setLocalVoiceEqualization(
    AudioEqualizationBandFrequency bandFrequency, int bandGain) {
  return _invokeMethod('setLocalVoiceEqualization', {
    'bandFrequency':
        AudioEqualizationBandFrequencyConverter(bandFrequency).value(),
    'bandGain': bandGain,
  });
}