AudioPcmFrame

Information of external PCM format audio frame.

export class AudioPcmFrame {
  capture_timestamp?: number;
  samples_per_channel_?: number;
  sample_rate_hz_?: number;
  num_channels_?: number;
  bytes_per_sample?: BytesPerSample;
  data_?: number[];
}

Properties

capture_timestamp
Timestamp of the audio frame (ms).
samples_per_channel_
Number of samples per channel.
sample_rate_hz_
Audio sampling rate (Hz).
num_channels_
Number of audio channels.
bytes_per_sample
Number of bytes per audio sample.
data_
Audio frame data.