MediaPipeTasksAudio Framework Reference

Protocols

The following declarations are available globally.

  • This protocol defines an interface for the delegates of AudioClassifier object to receive results of asynchronous classification of audio stream (i.e, when runningMode = .audioStream).

    The delegate of AudioClassifier must adopt AudioClassifierStreamDelegate protocol. The methods in this protocol are optional.

    Declaration

    Swift

    protocol AudioClassifierStreamDelegate : NSObjectProtocol
  • Protocol for generating embeddings across different modalities using task content parts.

    Declaration

    Swift

    protocol EmbeddingProvider : NSObjectProtocol