# CameraAvStreamManagementTrait.AudioStreamStruct

# CameraAvStreamManagementTrait.AudioStreamStruct


```
class CameraAvStreamManagementTrait.AudioStreamStruct : 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.AudioStreamStruct.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.AudioStreamStruct#AudioStreamStruct(kotlin.UShort,com.google.home.matter.standard.CameraAvStreamManagementTrait.StreamUsageEnum,com.google.home.matter.standard.CameraAvStreamManagementTrait.AudioCodecEnum,kotlin.UByte,kotlin.UInt,kotlin.UInt,kotlin.UByte,kotlin.UByte)( audioStreamId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, streamUsage: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.StreamUsageEnum, audioCodec: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioCodecEnum, channelCount: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, sampleRate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, bitRate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, bitDepth: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, referenceCount: 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.AudioStreamStruct#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.AudioStreamStruct#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://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.AudioStreamStruct#audioCodec()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioStreamStruct#audioStreamId()` |
| `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.AudioStreamStruct#bitDepth()` |
| `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.AudioStreamStruct#bitRate()` |
| `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.AudioStreamStruct#channelCount()` |
| `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.AudioStreamStruct#referenceCount()` |
| `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.AudioStreamStruct#sampleRate()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.StreamUsageEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.AudioStreamStruct#streamUsage()` |

## Public constructors

### AudioStreamStruct

```
AudioStreamStruct(
    audioStreamId: UShort,
    streamUsage: CameraAvStreamManagementTrait.StreamUsageEnum = StreamUsageEnum.Internal,
    audioCodec: CameraAvStreamManagementTrait.AudioCodecEnum = AudioCodecEnum.OPUS,
    channelCount: UByte,
    sampleRate: UInt,
    bitRate: UInt,
    bitDepth: UByte,
    referenceCount: UByte
)
```

## 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

### audioCodec

```
val audioCodec: CameraAvStreamManagementTrait.AudioCodecEnum
```

### audioStreamId

```
val audioStreamId: UShort
```

### bitDepth

```
val bitDepth: UByte
```

### bitRate

```
val bitRate: UInt
```

### channelCount

```
val channelCount: UByte
```

### referenceCount

```
val referenceCount: UByte
```

### sampleRate

```
val sampleRate: UInt
```

### streamUsage

```
val streamUsage: CameraAvStreamManagementTrait.StreamUsageEnum
```