# CameraAvStreamManagementTrait.AudioCapabilitiesStruct

# CameraAvStreamManagementTrait.AudioCapabilitiesStruct


```
class CameraAvStreamManagementTrait.AudioCapabilitiesStruct : ClusterStruct
```

<br />

*** ** * ** ***

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#AudioCapabilitiesStruct(kotlin.UByte,kotlin.collections.List,kotlin.collections.List,kotlin.collections.List)( maxNumberOfChannels: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, supportedCodecs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCodecEnum>, supportedSampleRates: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, supportedBitDepths: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html> )` |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#maxNumberOfChannels()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#supportedBitDepths()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCodecEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#supportedCodecs()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCapabilitiesStruct#supportedSampleRates()` |

## Public constructors

### AudioCapabilitiesStruct

```
AudioCapabilitiesStruct(
    maxNumberOfChannels: UByte,
    supportedCodecs: List<CameraAvStreamManagementTrait.AudioCodecEnum> = emptyList(),
    supportedSampleRates: List<UInt> = emptyList(),
    supportedBitDepths: List<UByte> = emptyList()
)
```

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### maxNumberOfChannels

```
val maxNumberOfChannels: UByte
```

### supportedBitDepths

```
val supportedBitDepths: List<UByte>
```

### supportedCodecs

```
val supportedCodecs: List<CameraAvStreamManagementTrait.AudioCodecEnum>
```

### supportedSampleRates

```
val supportedSampleRates: List<UInt>
```