AudioEffectPreset enum Null safety

The options for SDK preset audio effects.

Constants

AudioEffectOff → const AudioEffectPreset

Turn off audio effects and use the original voice.

@JsonValue(0)
const AudioEffectPreset(0)
PitchCorrection → const AudioEffectPreset

A pitch correction effect that corrects the user’s pitch based on the pitch of the natural C major scale. To change the basic mode and tonic pitch, call RtcEngine.setAudioEffectParameters after this method.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33816832)
const AudioEffectPreset(18)
RoomAcoustics3DVoice → const AudioEffectPreset

A 3D voice effect that makes the voice appear to be moving around the user. The default cycle period of the 3D voice effect is 10 seconds. To change the cycle period, call RtcEngine.setAudioEffectParameters after this method.

Note

  • Call setAudioProfile and set the profile parameter to MusicStandardStereo(3) or MusicHighQualityStereo(5) before setting this enumerator; otherwise, the enumerator setting does not take effect.
  • If the 3D voice effect is enabled, users need to use stereo audio playback devices to hear the anticipated voice effect.
@JsonValue(33622016)
const AudioEffectPreset(8)
RoomAcousticsEthereal → const AudioEffectPreset

A more ethereal audio effect.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33621760)
const AudioEffectPreset(7)
RoomAcousticsKTV → const AudioEffectPreset

An audio effect typical of a KTV venue.

@JsonValue(33620224)
const AudioEffectPreset(1)
RoomAcousticsPhonograph → const AudioEffectPreset

An audio effect typical of a vintage phonograph.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33620992)
const AudioEffectPreset(4)
RoomAcousticsSpacial → const AudioEffectPreset

A more spatial audio effect.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33621504)
const AudioEffectPreset(6)
RoomAcousticsStudio → const AudioEffectPreset

An audio effect typical of a recording studio.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33620736)
const AudioEffectPreset(3)
RoomAcousticsVirtualStereo → const AudioEffectPreset

A virtual stereo effect that renders monophonic audio as stereo audio.

Note

Call setAudioProfile and set the profile parameter to MusicStandardStereo(3) or MusicHighQualityStereo(5) before setting this enumerator; otherwise, the enumerator setting does not take effect.

@JsonValue(33621248)
const AudioEffectPreset(5)
RoomAcousticsVocalConcert → const AudioEffectPreset

An audio effect typical of a concert hall.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33620480)
const AudioEffectPreset(2)
StyleTransformationPopular → const AudioEffectPreset

An audio effect typical of popular music.

Note

Call RtcEngine.setAudioProfile and set the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator; otherwise, the enumerator setting does not take effect.

@JsonValue(33751552)
const AudioEffectPreset(17)
StyleTransformationRnB → const AudioEffectPreset

An audio effect typical of R&B music.

Note

Call RtcEngine.setAudioProfile and set the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator; otherwise, the enumerator setting does not take effect.

@JsonValue(33751296)
const AudioEffectPreset(16)
values → const List<AudioEffectPreset>

A constant List of the values in this enum, in order of their declaration.

const List<AudioEffectPreset>
VoiceChangerEffectBoy → const AudioEffectPreset

The voice of a boy.

Note

  • Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
  • To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.
@JsonValue(33686272)
const AudioEffectPreset(11)
VoiceChangerEffectGirl → const AudioEffectPreset

The voice of a girl.

Note

  • Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
  • To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.
@JsonValue(33686784)
const AudioEffectPreset(13)
VoiceChangerEffectHulk → const AudioEffectPreset

The voice of Hulk.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33687296)
const AudioEffectPreset(15)
VoiceChangerEffectOldMan → const AudioEffectPreset

The voice of an old man.

Note

  • Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
  • To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.
@JsonValue(33686016)
const AudioEffectPreset(10)
VoiceChangerEffectPigKing → const AudioEffectPreset

The voice of Pig King, a character in Journey to the West who has a voice like a growling bear.

Note

To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.

@JsonValue(33687040)
const AudioEffectPreset(14)
VoiceChangerEffectSister → const AudioEffectPreset

The voice of a young woman.

Note

  • Agora recommends using this enumerator to process a female-sounding voice; otherwise, you may not hear the anticipated voice effect.
  • To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.
@JsonValue(33686528)
const AudioEffectPreset(12)
VoiceChangerEffectUncle → const AudioEffectPreset

The voice of a middle-aged man.

Note

  • Agora recommends using this enumerator to process a male-sounding voice; otherwise, you may not hear the anticipated voice effect.
  • To achieve better audio effect quality, Agora recommends calling RtcEngine.setAudioProfile and setting the profile parameter to MusicHighQuality(4) or MusicHighQualityStereo(5) before setting this enumerator.
@JsonValue(33685760)
const AudioEffectPreset(9)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited