setAudioEffectPreset abstract method

Future<void> setAudioEffectPreset(
  1. AudioEffectPreset preset
)

Sets an SDK preset audio effect. 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 get better audio effect quality, Agora recommends calling setAudioProfile and setting the scenario parameter as GameStreaming (3) before calling this method. You can call this method either before or after joining a channel. Do not set the profile parameter in setAudioProfile to SpeechStandard (1), or the method does not take effect. This method works best with the human voice. Agora does not recommend using this method for audio containing music. If you call setAudioEffectPreset and set enumerators except for RoomAcoustics3DVoice or PitchCorrection, do not call setAudioEffectParameters ; otherwise, setAudioEffectPreset is overridden. After calling setAudioEffectPreset, Agora recommends not calling the following methods, because they can override setAudioEffectPreset: setVoiceBeautifierPreset setLocalVoiceReverbPreset setLocalVoiceChanger setLocalVoicePitch setLocalVoiceEqualization setLocalVoiceReverb setVoiceBeautifierParameters setVoiceConversionPreset

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

Implementation

Future<void> setAudioEffectPreset(AudioEffectPreset preset);