LocalAudioStats
本地音频统计数据。
Dart
(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});
(name: 'numChannels')
final int? numChannels;
(name: 'sentSampleRate')
final int? sentSampleRate;
(name: 'sentBitrate')
final int? sentBitrate;
(name: 'internalCodec')
final int? internalCodec;
(name: 'txPacketLossRate')
final int? txPacketLossRate;
(name: 'audioDeviceDelay')
final int? audioDeviceDelay;
(name: 'audioPlayoutDelay')
final int? audioPlayoutDelay;
(name: 'earMonitorDelay')
final int? earMonitorDelay;
(name: 'aecEstimatedDelay')
final int? aecEstimatedDelay;
factory LocalAudioStats.fromJson(Map<String, dynamic> json) =>
_$LocalAudioStatsFromJson(json);
Map<String, dynamic> toJson() => _$LocalAudioStatsToJson(this);
}
numChannels
声道数。
sentSampleRate
发送本地音频的采样率,单位为 Hz。
sentBitrate
发送本地音频的码率平均值,单位为 Kbps。
txPacketLossRate
弱网对抗前本端到声网边缘服务器的丢包率 (%)。
internalCodec
内部的 payload 类型。
audioDeviceDelay
播放或录制音频时,音频设备模块的延迟 (ms)。
earMonitorDelay
耳返延迟 (ms),即声音从麦克风输入到耳机输出的延迟。
aecEstimatedDelay
回声消除延迟 (ms),即回声消除 (Acoustic Echo Cancellation, AEC) 模块测算出音频在本地播放前与被本地采集后的信号延迟。