---
title: windowDuration
framework: soundanalysis
role: symbol
role_heading: Instance Property
path: soundanalysis/snclassifysoundrequest/windowduration
---

# windowDuration

The duration of the audio buffer the request sends to the underlying sound classifier for each prediction.

## Declaration

```swift
var windowDuration: CMTime { get set }
```

## Discussion

Discussion Configure the window duration with a value that satisfies the request’s windowDurationConstraint. The request sends larger audio buffer windows less frequently, which can make the classifications more accurate, but less precise in indicating when they occur. Requests with smaller buffer window durations sharpen the time resolution of each prediction, but send smaller audio buffers to the sound classifier.

## See Also

### Configuring a Request

- [overlapFactor](soundanalysis/snclassifysoundrequest/overlapfactor.md)
