Class Audio

java.lang.Object
dev.langchain4j.data.audio.Audio

public class Audio extends Object
  • Method Details

    • builder

      public static Audio.Builder builder()
      Create a new Audio.Builder.
      Returns:
      the new Audio.Builder.
    • url

      public URI url()
      Get the url of the audio.
      Returns:
      the url of the audio, or null if not set.
    • base64Data

      public String base64Data()
      Get the base64 data of the audio.
      Returns:
      the base64 data of the audio, or null if not set.
    • mimeType

      public String mimeType()
      Get the mime type of the audio.
      Returns:
      the mime type of the audio, or null if not set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object