Protocol

SNResultsObserving

The interface through which your app receives the results of an analysis request.

Declaration

protocol SNResultsObserving

Topics

Handling Requests

func request(SNRequest, didProduce: SNResult)

Provides a new analysis result to your app with the specified time range.

Required.

func request(SNRequest, didFailWithError: Error)

Provides any errors encountered during processing of this request.

func requestDidComplete(SNRequest)

Notifies your app that the analysis request completed normally.

Relationships

Inherits From

See Also

Configuration and Classification

class SNClassifySoundRequest

A request to perform sound classification using a Core ML model.

class SNClassificationResult

A result containing the highest-ranking classifications in the specified time range.

class SNClassification

The model’s classification of the analyzed sound combined with its level of confidence in that classification.