AudioPcmFrame
外部 PCM 格式音频帧的信息。
Dart
class AudioPcmFrame {
const AudioPcmFrame(
{this.captureTimestamp,
this.samplesPerChannel,
this.sampleRateHz,
this.numChannels,
this.bytesPerSample,
this.data});
(name: 'capture_timestamp')
final int? captureTimestamp;
(name: 'samples_per_channel_')
final int? samplesPerChannel;
(name: 'sample_rate_hz_')
final int? sampleRateHz;
(name: 'num_channels_')
final int? numChannels;
(name: 'bytes_per_sample')
final BytesPerSample? bytesPerSample;
(name: 'data_')
final List<int>? data;
factory AudioPcmFrame.fromJson(Map<String, dynamic> json) =>
_$AudioPcmFrameFromJson(json);
Map<String, dynamic> toJson() => _$AudioPcmFrameToJson(this);
}
captureTimestamp
音频帧的时间戳 (ms)。
samplesPerChannel
每个声道的采样点数。
sampleRateHz
音频采样率 (Hz)。
numChannels
音频声道数。
bytesPerSample
音频数据的字节数。
data
音频帧数据。