# AudioFrame (/zh-CN/api-reference/rtc/android/4.6.0/class-and-enum/classes/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` [#buffer]
音频帧的数据缓冲区。当音频帧使用立体声通道时,数据缓冲区为交叉存储。缓冲区大小计算方式为: `buffer` = `samples` × `channels` × `bytesPerSample`。
### `sampleRataHz` [#sampleratahz]
音频帧中每个声道的采样率(单位为 Hz)。
### `bytesPerSample` [#bytespersample]
每个采样的字节数。对于 PCM 数据,通常为 16 位(2 字节)。
### `channelNums` [#channelnums]
音频通道数(立体声时为交叉存储)。
- 1:单声道。
- 2:立体声。
### `samplesPerChannel` [#samplesperchannel]
音频帧中每个声道的采样数。
### `timestamp` [#timestamp]
音频帧的时间戳(单位:毫秒)。