AudioPcmFrame

The parameters of the audio frame in PCM format.

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

Attributes

capture_timestamp
The timestamp (ms) of the audio frame.
samples_per_channel_
The number of samples per channel in the audio frame.
sample_rate_hz_
Audio sample rate (Hz).
num_channels_
The number of audio channels.
bytes_per_sample
The number of bytes per sample.
data_
The audio frame.