---
title: "updateAudioStreamSetting(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmcamerastream/updateaudiostreamsetting(_:completionhandler:)"
---

# updateAudioStreamSetting(_:completionHandler:)

Updates an audio stream’s settings.

## Declaration

```swift
func updateAudioStreamSetting(_ audioStreamSetting: HMCameraAudioStreamSetting, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateAudioStreamSetting(_ audioStreamSetting: HMCameraAudioStreamSetting) async throws
```

## Parameters

- `audioStreamSetting`: The new audio stream configuration.
- `completion`: The block executed after processing the request.

## See Also

### Configuring the audio stream

- [audioStreamSetting](homekit/hmcamerastream/audiostreamsetting.md)
- [setAudioStreamSetting(_:)](homekit/hmcamerastream/setaudiostreamsetting(_:).md)
- [HMCameraAudioStreamSetting](homekit/hmcameraaudiostreamsetting.md)
