setVoiceConversionPreset abstract method

Future<void> setVoiceConversionPreset(
  1. VoiceConversionPreset preset
)

Sets a preset voice beautifier effect.

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

  • preset The options for the preset voice beautifier effects: VoiceConversionPreset.

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. < 0: Failure.

Implementation

Future<void> setVoiceConversionPreset(VoiceConversionPreset preset);