Instance Method


Adds a new analysis request to the audio file analyzer.


func add(_ request: SNRequest, withObserver observer: SNResultsObserving) throws



An audio analysis request to perform on the audio stream.


The object that receives the analysis results for the supplied request. The analyzer holds a weak reference to this object.


A pointer to an error object.

If an error occurs, this pointer is set to an actual error object containing the error information. You can specify nil for this parameter if you don't want the error details.

Return Value

This method throws an error if you call it while the analyzer is processing the file.

See Also

Managing Requests

func remove(SNRequest)

Removes an existing request from the audio file analyzer.

func removeAllRequests()

Removes all requests from the audio file analyzer.


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