LocalAudioMixerConfiguration

Local audio mixing configuration.

class LocalAudioMixerConfiguration {
  const LocalAudioMixerConfiguration(
      {this.streamCount, this.audioInputStreams, this.syncWithLocalMic});

  @JsonKey(name: 'streamCount')
  final int? streamCount;

  @JsonKey(name: 'audioInputStreams')
  final List<MixedAudioStream>? audioInputStreams;

  @JsonKey(name: 'syncWithLocalMic')
  final bool? syncWithLocalMic;

  factory LocalAudioMixerConfiguration.fromJson(Map<String, dynamic> json) =>
      _$LocalAudioMixerConfigurationFromJson(json);

  Map<String, dynamic> toJson() => _$LocalAudioMixerConfigurationToJson(this);
}

Properties

streamCount
Number of audio streams to be mixed locally.
audioInputStreams
Audio sources to be mixed locally. See MixedAudioStream.
syncWithLocalMic
Whether the mixed audio stream uses timestamps from the local microphone audio frames:
  • true: (default) Uses timestamps from the local microphone audio frames. Set this value if you want all locally captured audio streams to stay synchronized.
  • false: Does not use timestamps from the local microphone audio frames. The SDK uses the timestamp when the mixed audio frame is constructed.