<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SoundAnalysis",
  "identifier" : "/documentation/SoundAnalysis/SNClassificationResult",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Sound Analysis"
    ],
    "preciseIdentifier" : "c:objc(cs)SNClassificationResult"
  },
  "title" : "SNClassificationResult"
}
-->

# SNClassificationResult

A result that contains the highest-ranking classifications in a time range.

```
class SNClassificationResult
```

## Overview

An `SNClassificationResult` represents the predictions that a sound classification model made for a time span in an audio file or stream. Each result contains one or more classification predictions and a time range within the audio data.

An audio analyzer, such as [`SNAudioFileAnalyzer`](/documentation/SoundAnalysis/SNAudioFileAnalyzer) and [`SNAudioStreamAnalyzer`](/documentation/SoundAnalysis/SNAudioStreamAnalyzer), produces an `SNClassificationResult` each time it recognizes a sound for any of its [`SNClassifySoundRequest`](/documentation/SoundAnalysis/SNClassifySoundRequest) instances.

## Topics

### Inspecting the Result

[`timeRange`](/documentation/SoundAnalysis/SNClassificationResult/timeRange)

The time span that corresponds to the result’s classifications.

[`classifications`](/documentation/SoundAnalysis/SNClassificationResult/classifications)

A sorted array of the request’s top classification candidates.

[`SNClassification`](/documentation/SoundAnalysis/SNClassification)

A type that pairs a sound classifier’s prediction with its confidence in that prediction.

[`-  classificationForIdentifier:`](/documentation/SoundAnalysis/SNClassificationResult/classification(forIdentifier:))

Returns the classification for an identifier.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`SNResult`](/documentation/SoundAnalysis/SNResult)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

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)