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.

func cancelAnalysis()

Cancels any in-progress analysis of the audio file.