# Interface LocalAudioTrackStats (/zh-CN/api-reference/rtc/web/interfaces/localaudiotrackstats)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

## Properties [#properties]

<a id="codectype"></a>

<a id="optional-codectype"></a>

### codecType [#codectype]

<ApiSignature labels="Optional">

codecType: "opus"|"aac"|"PCMU"|"PCMA"|"G722"

</ApiSignature>

音频的编码格式。

- `"opus"`: 音频编码格式为 OPUS。
- `"aac"`: 音频编码格式为 AAC。
- `"pcmu"`: 预留参数，暂不支持。
- `"pcma"`: 预留参数，暂不支持。
- `"g722"`: 预留参数，暂不支持。

> Firefox 上无法获取该值。

<a id="currentpacketlossrate"></a>

### currentPacketLossRate [#currentpacketlossrate]

<ApiSignature>

currentPacketLossRate: number

</ApiSignature>

发送的音频 400ms 内的丢包率。

<a id="sendbitrate"></a>

### sendBitrate [#sendbitrate]

<ApiSignature>

sendBitrate: number

</ApiSignature>

发送的音频码率 (bps)。

<a id="sendbytes"></a>

### sendBytes [#sendbytes]

<ApiSignature>

sendBytes: number

</ApiSignature>

发送的音频总字节数 (bytes)。

<a id="sendjitterms"></a>

### sendJitterMs [#sendjitterms]

<ApiSignature>

sendJitterMs: number

</ApiSignature>

发送音频数据包的抖动 (ms)。

<a id="sendpackets"></a>

### sendPackets [#sendpackets]

<ApiSignature>

sendPackets: number

</ApiSignature>

发送的音频总包数。

<a id="sendpacketslost"></a>

### sendPacketsLost [#sendpacketslost]

<ApiSignature>

sendPacketsLost: number

</ApiSignature>

发送的音频总丢包数。

> Safari 上无法获取该值。

<a id="sendrttms"></a>

### sendRttMs [#sendrttms]

<ApiSignature>

sendRttMs: number

</ApiSignature>

发送音频数据包的往返时延 (ms)。

<a id="sendvolumelevel"></a>

### sendVolumeLevel [#sendvolumelevel]

<ApiSignature>

sendVolumeLevel: number

</ApiSignature>

发送的音频音量等级，范围为 [0,32767]。

> 该值通过 WebRTC-Stats 获取，不能确保实时性。如果你想获取当前实时的音量等级，调用 [LocalAudioTrack.getVolumeLevel](/zh-CN/api-reference/rtc/web/interfaces/ilocalaudiotrack#getvolumelevel)。
