LocalAudioStats

Local audio statistics.

@JsonSerializable(explicitToJson: true, includeIfNull: false)
class LocalAudioStats {
  const LocalAudioStats(
      {this.numChannels,
      this.sentSampleRate,
      this.sentBitrate,
      this.internalCodec,
      this.txPacketLossRate,
      this.audioDeviceDelay,
      this.audioPlayoutDelay,
      this.earMonitorDelay,
      this.aecEstimatedDelay});

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

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

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

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

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

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

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

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

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

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

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

Properties

numChannels
Number of audio channels.
sentSampleRate
Sampling rate of the sent local audio, in Hz.
sentBitrate
Average bitrate of the sent local audio, in Kbps.
txPacketLossRate
Packet loss rate (%) from the local end to the Agora edge server before network resilience is applied.
internalCodec
Internal payload type.
audioDeviceDelay
Delay (ms) of the audio device module during audio playback or recording.
earMonitorDelay
Ear monitor delay (ms), i.e., the delay from microphone input to headphone output.
aecEstimatedDelay
Acoustic Echo Cancellation (AEC) delay (ms), i.e., the delay estimated by the AEC module between audio playback and the signal captured locally.