setVoiceBeautifierPreset abstract method

Future<void> setVoiceBeautifierPreset(
  1. VoiceBeautifierPreset preset
)

Sets a preset voice beautifier effect.

Call this method to set a preset voice beautifier effect for the local user who sends an audio stream. After setting a voice beautifier effect, all users in the channel can hear the effect. You can set different voice beautifier effects for different scenarios.

  • preset The preset voice beautifier effect options: VoiceBeautifierPreset.

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.

Implementation

Future<void> setVoiceBeautifierPreset(VoiceBeautifierPreset preset);