Instance Method

analyze(completionHandler:)

Analyzes the audio file asynchronously.

Declaration

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

Parameters

completionHandler

The completion closure that's invoked when the processing completes.

Discussion

This function executes asynchronously, calling the completion handler after the entire file has completed analysis. The analyzer sends any errors produced during the analysis to the registerered request observers.

Calling the cancelAnalysis() method invokes the completion handler with an argument value of false.

See Also

Analyzing Data

func analyze()

Analyzes the audio file synchronously.

Beta
func cancelAnalysis()

Cancels any in-progress analysis of the audio file.

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