setVoiceBeautifierParameters abstract method
- required VoiceBeautifierPreset preset,
- required int param1,
- required int param2,
Sets the parameters for the preset voice beautifier effect.
Call this method to set the gender characteristics and reverb effect for the singing beautifier. This method applies to the local user who is sending the stream. After setting, all users in the channel can hear the effect. To achieve better vocal quality, it is recommended to do the following before calling this method: Call setAudioScenario to set the audio scenario to high-quality, i.e., audioScenarioGameStreaming (3). Call setAudioProfile to set the profile to audioProfileMusicHighQuality (4) or audioProfileMusicHighQualityStereo (5). This method can be called before or after joining a channel. Do not set the profile parameter of setAudioProfile to audioProfileSpeechStandard (1) or audioProfileIot (6), otherwise this method will not take effect. This method provides optimal processing for vocals and is not recommended for audio data containing music. After calling setVoiceBeautifierParameters, do not call the following methods, or the effect set by setVoiceBeautifierParameters will be overridden: setAudioEffectPreset setAudioEffectParameters setVoiceBeautifierPreset setLocalVoicePitch setLocalVoiceEqualization setLocalVoiceReverb setVoiceConversionPreset This method depends on the voice beautifier dynamic library libagora_audio_beauty_extension.dll. If this library is deleted, the feature will not work properly.
presetThe preset audio effect: SINGING_BEAUTIFIER : Singing beautifier.param1Gender characteristics of the singing voice: 1 : Male voice. 2 : Female voice.param2Reverb effect of the singing voice: 1 : Reverb effect in a small room. 2 : Reverb effect in a large room. 3 : Reverb effect in a hall.
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> setVoiceBeautifierParameters(
{required VoiceBeautifierPreset preset,
required int param1,
required int param2});