enableLiveAudioEffect abstract method
- bool enable,
- ZegoLiveAudioEffectMode mode
Enable live audio effect.
Available since: 3.10.0
Description: When the live audio effect is turned on, the spatial sense is enhanced and the instrument sounds become more prominent, without any increase in delay.
Use cases: It is commonly used in voice chat rooms and karaoke scenarios to enhance the live audio effects of the accompaniment.
When to call: It can be called after the engine by createEngine
has been initialized and the media player has been created by createMediaPlayer
.
Caution: To enhance the live audio effect experience, it is recommended to configure dual-channel stereo encoding. Developers can achieve this configuration by using the setAudioCaptureStereoMode
method. Failure to configure dual-channel stereo encoding may significantly diminish the effects of certain songs, as the left and right channel effects may cancel each other out when synthesizing mono audio, resulting in less noticeable effects.
enable
Whether to enable live audio effect.mode
Live audio effect mode.
Implementation
Future<void> enableLiveAudioEffect(bool enable, ZegoLiveAudioEffectMode mode);