AudioPcmFrame
Information of external PCM format audio frame.
class AudioPcmFrame {
const AudioPcmFrame(
{this.captureTimestamp,
this.samplesPerChannel,
this.sampleRateHz,
this.numChannels,
this.bytesPerSample,
this.data});
@JsonKey(name: 'capture_timestamp')
final int? captureTimestamp;
@JsonKey(name: 'samples_per_channel_')
final int? samplesPerChannel;
@JsonKey(name: 'sample_rate_hz_')
final int? sampleRateHz;
@JsonKey(name: 'num_channels_')
final int? numChannels;
@JsonKey(name: 'bytes_per_sample')
final BytesPerSample? bytesPerSample;
@JsonKey(name: 'data_')
final List<int>? data;
factory AudioPcmFrame.fromJson(Map<String, dynamic> json) =>
_$AudioPcmFrameFromJson(json);
Map<String, dynamic> toJson() => _$AudioPcmFrameToJson(this);
}
Properties
- captureTimestamp
- Timestamp (ms) of the audio frame.
- samplesPerChannel
- Number of samples per channel.
- sampleRateHz
- Audio sample rate (Hz).
- numChannels
- Number of audio channels.
- bytesPerSample
- Number of bytes per audio sample.
- data
- Audio frame data.