setVoiceChangerPreset method

Future<void> setVoiceChangerPreset(
  1. ZegoVoiceChangerPreset preset
)

Setting up the voice changer via preset enumeration.

Available since: 1.17.0 Description: Call this function to use preset voice changer effect. Use cases: Often used in live broadcasting, voice chatroom and KTV. When to call: It needs to be called after createEngine. Related APIs: If you need advanced voice changer effect, please use setVoiceChangerParam. The effect of using this function together with setReverbPreset may be different from what is expected. If you need to use it at the same time, it is recommended to enable the voice changer first, and then enable the reverb. Using ANDROID/ETHEREAL preset voice changer effect will modify reverberation or reverberation echo parameters. Calling setVoiceChangerParam, setReverbAdvancedParam, setReverbEchoParam may affect the voice changer effect after use these preset voice changer effect. If you need advanced reverb/echo/electronic effects/voice changer effect, please use setReverbAdvancedParam, setReverbEchoParam, setElectronicEffects, setVoiceChangerParam together.

  • preset The voice changer preset enumeration.

Implementation

Future<void> setVoiceChangerPreset(ZegoVoiceChangerPreset preset) async {
  return await ZegoExpressImpl.instance.setVoiceChangerPreset(preset);
}