Interface AudioContent

All Superinterfaces:
ContentBlock, MetaCarrier

public non-sealed interface AudioContent extends ContentBlock
Audio data content
  • Method Details

    • data

      byte[] data()
      Returns the audio data
      Returns:
      the audio data as a byte array
    • mimeType

      String mimeType()
      Returns the MIME type of the audio data
      Returns:
      the MIME type
    • annotations

      Optional<Annotations> annotations()
      Optional annotations for the client
      Returns:
      the annotations
    • builder

      static AudioContent.Builder builder(byte[] data, String mimeType)
      Creates a new builder for an AudioContent
      Parameters:
      data - the audio data
      mimeType - the MIME type of the audio data
      Returns:
      the audio content builder
    • of

      static AudioContent of(byte[] data, String mimeType)
      Creates a new AudioContent
      Parameters:
      data - the audio data
      mimeType - the MIME type of the audio data
      Returns:
      the new audio content