# AudioAttribute - [Overview](#section1896801825165630) - [Summary](#section1215842888165630) - [Data Fields](#pub-attribs) - [Details](#section424170924165630) - [Field](#section109559353165630) - [GetCurrentChannelId](#ad070369ffa9d88df541aaf0ffbbcfbfd) - [GetFrameCount](#ab31fee582dc33b9320e0a0e5d16ae0e6) - [GetFrameSize](#a74a23f0544ac688223e61fa71a307851) - [GetSampleAttributes](#a2f92d8704ef677a07d664c33342e4318) - [SetSampleAttributes](#a502fe4e4b97cd253244debcc67d45c4d) ## **Overview** **Related Modules:** [Audio](audio.md) **Description:** Provides attribute-related APIs for audio rendering or capturing, including functions to obtain frame information and set audio sampling attributes. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
GetFrameSize )(AudioHandle handle, uint64_t *size) |
Obtains the audio frame size, that is, the length (in bytes) of a frame. |
GetFrameCount )(AudioHandle handle, uint64_t *count) |
|
SetSampleAttributes )(AudioHandle handle, const struct AudioSampleAttributes *attrs) |
|
GetSampleAttributes )(AudioHandle handle, struct AudioSampleAttributes *attrs) |
|
GetCurrentChannelId )(AudioHandle handle, uint32_t *channelId) |
| handle | Indicates the audio handle. |
| channelId | Indicates the pointer to the data channel ID. |
| handle | Indicates the audio handle. |
| count | Indicates the pointer to the number of audio frames in the audio buffer. |
| handle | Indicates the audio handle. |
| size | Indicates the pointer to the audio frame size (in bytes). |
| handle | Indicates the audio handle. |
| attrs | Indicates the pointer to the audio sampling attributes, such as the sampling rate, sampling precision, and channel. |
| handle | Indicates the audio handle. |
| attrs | Indicates the pointer to the audio sampling attributes to set, such as the sampling rate, sampling precision, and channel. |