AudioEffectPreset

Preset audio effects.

To get better audio effects, Agora recommends calling setAudioProfile and setting the profile parameter as recommended below before using the preset audio effects.
Preset audio effects profile
  • roomAcousticsVirtualStereo
  • roomAcoustics3dVoice
  • roomAcousticsVirtualSurroundSound
audioProfileMusicHighQualityStereo or audioProfileMusicStandardStereo
Other preset audio effects (except for audioEffectOff) audioProfileMusicHighQuality or audioProfileMusicHighQualityStereo

Enumerator

audioEffectOff
Turn off voice effects, that is, use the original voice.
roomAcousticsKtv
The voice effect typical of a KTV venue.
roomAcousticsVocalConcert
The voice effect typical of a concert hall.
roomAcousticsStudio
The voice effect typical of a recording studio.
roomAcousticsPhonograph
The voice effect typical of a vintage phonograph.
roomAcousticsVirtualStereo
The virtual stereo effect, which renders monophonic audio as stereo audio.
roomAcousticsSpacial
A more spatial voice effect.
roomAcousticsEthereal
A more ethereal voice effect.
roomAcousticsVirtualSurroundSound
Virtual surround sound, that is, the SDK generates a simulated surround sound field on the basis of stereo channels, thereby creating a surround sound effect.
Attention: If the virtual surround sound is enabled, users need to use stereo audio playback devices to hear the anticipated audio effect.
roomAcousticsChorus
The audio effect of chorus. Agora recommends using this effect in chorus scenarios to enhance the sense of depth and dimension in the vocals.
roomAcoustics3dVoice

A 3D voice effect that makes the voice appear to be moving around the user. The default cycle period is 10 seconds. After setting this effect, you can call setAudioEffectParameters to modify the movement period.

Attention: If the 3D voice effect is enabled, users need to use stereo audio playback devices to hear the anticipated voice effect.
voiceChangerEffectUncle

A middle-aged man's voice.

Attention: Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
voiceChangerEffectOldman

An older man's voice.

Attention: Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
voiceChangerEffectBoy

A boy's voice.

Attention: Agora recommends using this preset to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
voiceChangerEffectSister

A young woman's voice.

Attention: Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
voiceChangerEffectGirl

A girl's voice.

Attention: Agora recommends using this preset to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
voiceChangerEffectPigking
The voice of Pig King, a character in Journey to the West who has a voice like a growling bear.
voiceChangerEffectHulk
The Hulk's voice.
styleTransformationRnb
The voice effect typical of R&B music.
styleTransformationPopular
The voice effect typical of popular music.
pitchCorrection
A pitch correction effect that corrects the user's pitch based on the pitch of the natural C major scale. After setting this voice effect, you can call setAudioEffectParameters to adjust the basic mode of tuning and the pitch of the main tone.