---
title: volume
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssound/volume
---

# volume

The volume of the sound.

## Declaration

```swift
var volume: Float { get set }
```

## Discussion

Discussion The valid range is between 0.0 and 1.0. The value of this property does not affect the systemwide volume.

## See Also

### Configuring Sounds

- [name](appkit/nssound/name-swift.property.md)
- [NSSound.Name](appkit/nssound/name-swift.typealias.md)
- [setName(_:)](appkit/nssound/setname(_:).md)
- [currentTime](appkit/nssound/currenttime.md)
- [loops](appkit/nssound/loops.md)
- [playbackDeviceIdentifier](appkit/nssound/playbackdeviceidentifier-swift.property.md)
- [NSSound.PlaybackDeviceIdentifier](appkit/nssound/playbackdeviceidentifier-swift.typealias.md)
