setVoiceBeautifierParameters abstract method

Future<void> setVoiceBeautifierParameters(
  1. VoiceBeautifierPreset preset,
  2. int param1,
  3. int param2
)

Sets parameters for the preset voice beautifier effects. Since v3.3.0 Call this method to set a gender characteristic and a reverberation effect for the singing beautifier effect. This method sets parameters for the local user who sends an audio stream. After setting the audio parameters, all users in the channel can hear the effect. For better voice effects, Agora recommends that you call setAudioProfile and setscenario to GameStreaming(3) and profile to MusicHighQuality(4) or MusicHighQualityStereo(5) before calling this method. You can call this method either before or after joining a channel. Do not set the profile parameter of setAudioProfile to SpeechStandard(1). Otherwise, 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. After calling setVoiceBeautifierParameters, Agora recommends not calling the following methods, because they can override settings in setVoiceBeautifierParameters: setAudioEffectPreset setAudioEffectParameters setVoiceBeautifierPreset setLocalVoiceReverbPreset setLocalVoiceChanger setLocalVoicePitch setLocalVoiceEqualization setLocalVoiceReverb setVoiceConversionPreset

Param preset The option for the preset audio effect: SINGING_BEAUTIFIER: The singing beautifier effect.

Param param1 The gender characteristics options for the singing voice: 1: A male-sounding voice. 2: A female-sounding voice.

Param param2 The reverberation effect options for the singing voice: 1: The reverberation effect sounds like singing in a small room. 2: The reverberation effect sounds like singing in a large room. 3: The reverberation effect sounds like singing in a hall.

Implementation

Future<void> setVoiceBeautifierParameters(
    VoiceBeautifierPreset preset, int param1, int param2);