Package dev.langchain4j.model.audio
Class AudioTranscriptionRequest.Builder
java.lang.Object
dev.langchain4j.model.audio.AudioTranscriptionRequest.Builder
- Enclosing class:
AudioTranscriptionRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the audio data to transcribe.build()
Sets the language of the audio for more accurate transcription.Sets an optional text prompt to guide the model's transcription.temperature
(Double temperature) Sets the temperature parameter for controlling randomness in the transcription.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
audio
Sets the audio data to transcribe.- Parameters:
audio
- The audio data- Returns:
- builder
-
prompt
Sets an optional text prompt to guide the model's transcription.- Parameters:
prompt
- The text prompt- Returns:
- builder
-
language
Sets the language of the audio for more accurate transcription.- Parameters:
language
- The language code (e.g., "en", "fr", "es")- Returns:
- builder
-
temperature
Sets the temperature parameter for controlling randomness in the transcription.- Parameters:
temperature
- A value between 0.0 and 1.0- Returns:
- builder
-
build
-