setVoiceBeautifierPreset method Null safety
- int preset
Sets a preset voice beautifier effect.
The method can set a preset voice beautifier effect for a local user who sends an audio stream.
Note: This call this method before or after joining a room. By default, the voice beautifier effect is disabled after the call ends. [preset] indicates the preset voice beautifier effect. By default, the voice beautifier effect is disabled. For more information, see [ NERtcVoiceBeautifierType]
Implementation
Future<int> setVoiceBeautifierPreset(int preset) async {
IntValue reply =
await _api.setVoiceBeautifierPreset(IntValue()..value = preset);
return reply.value ?? -1;
}