AudioClassifierResult
class AudioClassifierResult: TaskResult, NSCopyingRepresents the classification results generated by AudioClassifier. *
-
Initializes a new
AudioClassifierResultwith the given array ofClassificationResultobjects and timestamp (in milliseconds).Declaration
Swift
init(classificationResults: [ClassificationResult], timestampInMilliseconds: Int)Parameters
classificationResultsThe array of
ClassificationResultobjects each containing one set of results per classifier head.timestampInMillisecondsThe timestamp (in milliseconds) for this result.
Return Value
An instance of
AudioClassifierResultinitialized with the givenClassificationResultand timestamp (in milliseconds). -
A list of timestamped
ClassificationResultobjects, each containing one set of results per classifier head. In the "audio stream" mode, the list only contains one element, representing the classification result of the audio block that starts at ClassificationResult.timestampInMilliseconds in the audio stream. Otherwise, in the "audio clips" mode, the list may include multipleClassificationResultobjects, each classifying an interval of the entire audio clip that starts atClassificationResult.timestampInMilliseconds.Declaration
Swift
var classificationResults: [ClassificationResult] { get }