---
title: SNAudioStreamAnalyzer
framework: soundanalysis
role: symbol
role_heading: Class
path: soundanalysis/snaudiostreamanalyzer
---

# SNAudioStreamAnalyzer

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

## Declaration

```swift
class SNAudioStreamAnalyzer
```

## Mentioned in

Classifying Sounds in an Audio Stream

## Overview

Overview Run an SNRequest on an audio stream by creating an SNAudioStreamAnalyzer. You can run the same sound analysis request on multiple stream analyzers, and each analyzer can process multiple requests. An audio file analyzer generates an SNResult each time any of its active requests recognizes a sound.

## Topics

### Creating an Analyzer

- [init(format:)](soundanalysis/snaudiostreamanalyzer/init(format:).md)

### Managing Requests

- [add(_:withObserver:)](soundanalysis/snaudiostreamanalyzer/add(_:withobserver:).md)
- [SNRequest](soundanalysis/snrequest.md)
- [SNResultsObserving](soundanalysis/snresultsobserving.md)
- [remove(_:)](soundanalysis/snaudiostreamanalyzer/remove(_:).md)
- [removeAllRequests()](soundanalysis/snaudiostreamanalyzer/removeallrequests().md)

### Analyzing Data

- [analyze(_:atAudioFramePosition:)](soundanalysis/snaudiostreamanalyzer/analyze(_:ataudioframeposition:).md)
- [completeAnalysis()](soundanalysis/snaudiostreamanalyzer/completeanalysis().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Audio analyzers

- [Classifying Sounds in an Audio File](soundanalysis/classifying-sounds-in-an-audio-file.md)
- [SNAudioFileAnalyzer](soundanalysis/snaudiofileanalyzer.md)
- [Classifying Sounds in an Audio Stream](soundanalysis/classifying-sounds-in-an-audio-stream.md)
