<!--
{
  "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/SNClassifySoundRequest/windowDurationConstraint-5no60",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Sound Analysis",
      "SoundAnalysis"
    ],
    "preciseIdentifier" : "s:So22SNClassifySoundRequestC0B8AnalysisE24windowDurationConstraintAC06SNTimefG0Ovp"
  },
  "title" : "windowDurationConstraint"
}
-->

# windowDurationConstraint

A range or list of sound duration times the request’s underlying sound classifier supports.

```
@nonobjc var windowDurationConstraint: SNTimeDurationConstraint { get }
```

## Discussion

Configure the request’s [`windowDuration`](/documentation/SoundAnalysis/SNClassifySoundRequest/windowDuration) property with a value that satisfies the window duration constraint.

---

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)