Class

SNAudioStreamAnalyzer

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

Declaration

class SNAudioStreamAnalyzer : NSObject

Overview

You use an instance of this class to analyze a stream of audio, represented by a sequence of audio buffers over time.

Topics

Creating an Analyzer

init(format: AVAudioFormat)

Creates a new audio stream analyzer.

Managing Requests

func add(SNRequest, withObserver: SNResultsObserving)

Adds a new analysis request to the audio stream analyzer.

func remove(SNRequest)

Removes an existing request from the audio stream analyzer.

func removeAllRequests()

Removes all requests from the audio stream analyzer.

Analyzing Data

func completeAnalysis()

Indicates that the audio stream has ended and the analyzer has completed processing of all audio buffers.

Relationships

Inherits From

Conforms To

See Also

Audio Analyzers

Analyzing Audio to Classify Sounds

Use the SoundAnalysis framework and Core ML to analyze audio.

class SNAudioFileAnalyzer

An object you create to analyze an audio file and provide the results to your app.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software