Contents

windowDuration

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

Declaration

var windowDuration: CMTime { get set }

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