AudioClassifierResult

public abstract class AudioClassifierResult implements TaskResult


Represents the classification results generated by AudioClassifier.

Summary

Public constructors

Public methods

abstract List<ClassificationResult>

A list of of timestamped ClassificationResult objects, each contains one set of results per classifier head.

abstract long

Returns the timestamp that is associated with the task result object.

Public constructors

AudioClassifierResult

public AudioClassifierResult()

Public methods

classificationResults

public abstract List<ClassificationResult> classificationResults()

A list of of timestamped ClassificationResult objects, each contains 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.timestampMs in the audio stream. Otherwise, in the "audio clips" mode, the list may include multiple ClassificationResult objects, each classifying an interval of the entire audio clip that starts at ClassificationResult.timestampMs.

timestampMs

public abstract long timestampMs()

Returns the timestamp that is associated with the task result object.