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);
}
Attributes
- numChannels
- The number of audio channels.
- sentSampleRate
- The sampling rate (Hz) of sending the local user's audio stream.
- sentBitrate
- The average bitrate (Kbps) of sending the local user's audio stream.
- txPacketLossRate
- The packet loss rate (%) from the local client to the Agora server before applying the anti-packet loss strategies.
- internalCodec
- The internal payload codec.
- audioDeviceDelay
- The audio device module delay (ms) when playing or recording audio.
- earMonitorDelay
- The ear monitor delay (ms), which is the delay from microphone input to headphone output.
- aecEstimatedDelay
- Acoustic echo cancellation (AEC) module estimated delay (ms), which is the signal delay between when audio is played locally before being locally captured.