Class

SNAudioFileAnalyzer

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

Declaration

class SNAudioFileAnalyzer : NSObject

Topics

Creating an Analyzer

init(url: URL)

Creates a new audio file analyzer.

Managing Requests

func add(SNRequest, withObserver: SNResultsObserving)

Adds a new analysis request to the audio file analyzer.

func remove(SNRequest)

Removes an existing request from the audio file analyzer.

func removeAllRequests()

Removes all requests from the audio file analyzer.

Analyzing Data

func analyze()

Analyzes the audio file synchronously.

func analyze(completionHandler: (Bool) -> Void)

Analyzes the audio file asynchronously.

func cancelAnalysis()

Cancels any in-progress analysis of the audio file.

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 SNAudioStreamAnalyzer

An object you create to analyze a stream of audio data 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