setAudioEffectPreset method Null safety

Future<void> setAudioEffectPreset(
  1. AudioEffectPreset preset

Sets an SDK preset audio effect.

Since v3.2.1

Call this method to set an SDK preset audio effect for the local user who sends an audio stream. This audio effect does not change the gender characteristics of the original voice. After setting an audio effect, all users in the channel can hear the effect.

You can set different audio effects for different scenarios. See Set the Voice Beautifier and Audio Effects.

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the scenario parameter to GameStreaming(3) before calling this method.


Parameter preset The options for SDK preset audio effects. See AudioEffectPreset.


Future<void> setAudioEffectPreset(AudioEffectPreset preset) {
  return _invokeMethod('setAudioEffectPreset', {
    'preset': AudioEffectPresetConverter(preset).value(),