AudioTrackConfig
The configuration of custom audio tracks.
class AudioTrackConfig { const AudioTrackConfig( {this.enableLocalPlayback, this.enableAudioProcessing}); @JsonKey(name: 'enableLocalPlayback') final bool? enableLocalPlayback; @JsonKey(name: 'enableAudioProcessing') final bool? enableAudioProcessing; factory AudioTrackConfig.fromJson(Map<String, dynamic> json) => _$AudioTrackConfigFromJson(json); Map<String, dynamic> toJson() => _$AudioTrackConfigToJson(this); }
Attributes
- enableLocalPlayback
- Whether to enable the local audio-playback device:
true
: (Default) Enable the local audio-playback device.false
: Do not enable the local audio-playback device.
- enableAudioProcessing
- Whether to enable audio processing module:
true
Enable the audio processing module to apply the Automatic Echo Cancellation (AEC), Automatic Noise Suppression (ANS), and Automatic Gain Control (AGC) effects.false
: (Default) Do not enable the audio processing module.
Attention: This parameter only takes effect on audioTrackDirect in custom audio capturing.