<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SoundAnalysis",
  "identifier" : "/documentation/SoundAnalysis/SNTimeDurationConstraint-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Sound Analysis"
    ],
    "preciseIdentifier" : "s:13SoundAnalysis24SNTimeDurationConstraintO"
  },
  "title" : "SNTimeDurationConstraint"
}
-->

# SNTimeDurationConstraint

Defines the time duration windows the request’s underlying sound classifier accepts with a range, or an array, of durations.

```
enum SNTimeDurationConstraint
```

## Topics

### Inspecting a Constraint

[`SNTimeDurationConstraint.durationRange(_:)`](/documentation/SoundAnalysis/SNTimeDurationConstraint-swift.enum/durationRange(_:))

A constraint that defines acceptable time window durations with a range.

[`SNTimeDurationConstraint.enumeratedDurations(_:)`](/documentation/SoundAnalysis/SNTimeDurationConstraint-swift.enum/enumeratedDurations(_:))

A constraint that defines acceptable time window durations in a discrete list.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)