---
title: "setName(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwareobject/setname(_:)"
---

# setName(_:)

Set the name property.

## Declaration

```swift
func setName(_ name: String) throws
```

## Parameters

- `name`: A String that contains the human readable name of the object.
