# Protocols

The following declarations are available globally.
- `
  ### [AudioClassifierStreamDelegate](https://developers.google.com/edge/api/mediapipe/swift/audio/Protocols/AudioClassifierStreamDelegate.md.txt)

  ` 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

- `
  ### [EmbeddingProvider](https://developers.google.com/edge/api/mediapipe/swift/audio/Protocols/EmbeddingProvider.md.txt)

  ` Protocol for generating embeddings across different modalities using task content parts.

  #### Declaration

  Swift

      protocol EmbeddingProvider: NSObjectProtocol