Package dev.langchain4j.data.audio
Class Audio.Builder
-
- All Implemented Interfaces:
public class Audio.BuilderBuilder for Audio.
-
-
Constructor Summary
Constructors Constructor Description Audio.Builder()Create a new Builder.
-
Method Summary
Modifier and Type Method Description Audio.Builderurl(URI url)Set the url of the audio. Audio.Builderurl(String url)Set the url of the audio. Audio.Builderbase64Data(String base64Data)Set the base64 data of the audio. Audio.BuildermimeType(String mimeType)Set the mime type of the audio. Audiobuild()Build the Audio. -
-
Constructor Detail
-
Audio.Builder
Audio.Builder()
Create a new Builder.
-
-
Method Detail
-
url
Audio.Builder url(URI url)
Set the url of the audio.
- Parameters:
url- the url of the audio.- Returns:
this
-
url
Audio.Builder url(String url)
Set the url of the audio.
- Parameters:
url- the url of the audio.- Returns:
this
-
base64Data
Audio.Builder base64Data(String base64Data)
Set the base64 data of the audio.
- Parameters:
base64Data- the base64 data of the audio.- Returns:
this
-
mimeType
Audio.Builder mimeType(String mimeType)
Set the mime type of the audio.
- Parameters:
mimeType- the mime type of the audio.- Returns:
this
-
-
-
-