setLocalVoiceReverb abstract method

Future<void> setLocalVoiceReverb({
  1. required AudioReverbType reverbKey,
  2. required int value,
})

Sets the local voice reverb effect.

The SDK provides an easier method setAudioEffectPreset to directly apply preset reverb effects such as pop, R&B, KTV, etc. This method can be called before and after joining a channel.

  • reverbKey Reverb effect key. This method supports 5 reverb effect keys. See AudioReverbType.
  • value The value corresponding to each reverb effect key.

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> setLocalVoiceReverb(
    {required AudioReverbType reverbKey, required int value});