setLocalVoiceEqualization method Null safety
Sets the local voice equalization effect, or customizes center frequencies of the local voice effects.
Note: This call this method before or after joining a room. By default, the voice beautifier effect is disabled after the call ends.
bandFrequency 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, 250, 500, 1k, 2k, 4k, 8k, and 16k Hz.
bandGain the gain of each band (dB). Value range: -15 to 15. The default value is 0.
Implementation
Future<int> setLocalVoiceEqualization(int bandFrequency, int bandGain) async {
IntValue reply =
await _api.setLocalVoiceEqualization(SetLocalVoiceEqualizationRequest()
..bandFrequency = bandFrequency
..bandGain = bandGain);
return reply.value ?? -1;
}