# AudioFrame (/zh-CN/api-reference/rtc/android/class-audioframe)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```java
public class AudioFrame {
public ByteBuffer buffer;
public int sampleRataHz;
public int bytesPerSample;
public int channelNums;
public int samplesPerChannel;
public long timestamp;
}
```
## 属性 [#属性]
音频帧的数据缓冲区。当音频帧使用立体声通道时,数据缓冲区为交叉存储。缓冲区大小计算方式为:`buffer` = `samples` × `channels` × `bytesPerSample`。
音频帧中每个声道的采样率(单位为 Hz)。
每个采样的字节数。对于 PCM 数据,通常为 16 位(2 字节)。
音频通道数(立体声时为交叉存储)。
- 1:单声道。
- 2:立体声。
音频帧中每个声道的采样数。
音频帧的时间戳(单位:毫秒)。