<!--
{
  "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: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SoundAnalysis",
  "identifier" : "/documentation/SoundAnalysis",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "Sound Analysis"
    ],
    "preciseIdentifier" : "SoundAnalysis"
  },
  "title" : "Sound Analysis"
}
-->

# Sound Analysis

Classify various sounds by analyzing audio files or streams.

## Overview

Identify specific sounds in your app, such as laughter or applause, by creating an [`SNClassifySoundRequest`](/documentation/SoundAnalysis/SNClassifySoundRequest) to analyze an audio file or stream. Sound requests can identify over 300 sounds. Alternatively, you identify a custom set of sounds by providing the sound request with a custom Core ML model. You train a custom sound classification model by creating an <doc://com.apple.documentation/documentation/CreateML/MLSoundClassifier> with audio data in <doc://com.apple.documentation/documentation/CreateML>.

## Topics

### Audio analyzers

[Classifying Sounds in an Audio File](/documentation/SoundAnalysis/classifying-sounds-in-an-audio-file)

Identify individual sounds in a file, such as a recording, with an audio file analyzer.

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

An analyzer that runs sound classification requests on an audio file.

[Classifying Sounds in an Audio Stream](/documentation/SoundAnalysis/classifying-sounds-in-an-audio-stream)

Identify individual sounds in an audio data stream, such as from a microphone, with an audio stream analyzer.

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

An object you create to analyze a stream of audio data and provide the results to your app.

### Sound classification requests

[Classifying Live Audio Input with a Built-in Sound Classifier](/documentation/SoundAnalysis/classifying-live-audio-input-with-a-built-in-sound-classifier)

Detect and identify hundreds of sounds by using a trained classifier.

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

A request that classifies sound using a Core ML model.

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

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

### Errors

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

An error from the Sound Analysis framework.

[`SNError.Code`](/documentation/SoundAnalysis/SNError/Code)

The enumerated error codes that the Sound Analysis framework produces.

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

A string that identifies the Sound Analysis error domain.



---

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)
