<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SoundAnalysis",
  "identifier" : "/documentation/SoundAnalysis/SNTimeDurationConstraintType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Sound Analysis"
    ],
    "preciseIdentifier" : "c:@E@SNTimeDurationConstraintType"
  },
  "title" : "SNTimeDurationConstraintType"
}
-->

# SNTimeDurationConstraintType

Defines the types a time duration constraint uses.

```
enum SNTimeDurationConstraintType : NSInteger;
```

## Topics

### Constraint Types

[`SNTimeDurationConstraintTypeEnumerated`](/documentation/SoundAnalysis/SNTimeDurationConstraintType/SNTimeDurationConstraintTypeEnumerated)

A constraint type that uses an array of time durations to define what a request’s underlying sound classifier accepts.

[`SNTimeDurationConstraintTypeRange`](/documentation/SoundAnalysis/SNTimeDurationConstraintType/SNTimeDurationConstraintTypeRange)

A constraint type that uses a time duration range to define what a request’s underlying sound classifier accepts.



---

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)