Package dev.langchain4j.data.audio
Class Audio.Builder
java.lang.Object
dev.langchain4j.data.audio.Audio.Builder
- Enclosing class:
Audio
Builder for
Audio
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64Data
(String base64Data) Set the base64 data of the audio.build()
Build theAudio
.Set the mime type of the audio.Set the url of the audio.Set the url of the audio.
-
Constructor Details
-
Builder
public Builder()Create a newAudio.Builder
.
-
-
Method Details
-
url
Set the url of the audio.- Parameters:
url
- the url of the audio.- Returns:
this
-
url
Set the url of the audio.- Parameters:
url
- the url of the audio.- Returns:
this
-
base64Data
Set the base64 data of the audio.- Parameters:
base64Data
- the base64 data of the audio.- Returns:
this
-
mimeType
Set the mime type of the audio.- Parameters:
mimeType
- the mime type of the audio.- Returns:
this
-
build
Build theAudio
.- Returns:
- the
Audio
.
-