Package com.google.genai.types
Class AudioTranscriptionConfig.Builder
-
- All Implemented Interfaces:
public abstract class AudioTranscriptionConfig.BuilderBuilder for AudioTranscriptionConfig.
-
-
Constructor Summary
Constructors Constructor Description AudioTranscriptionConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract AudioTranscriptionConfig.BuilderlanguageCodes(List<String> languageCodes)Setter for languageCodes. AudioTranscriptionConfig.BuilderlanguageCodes(Array<String> languageCodes)Setter for languageCodes. AudioTranscriptionConfig.BuilderclearLanguageCodes()Clears the value of languageCodes field. abstract AudioTranscriptionConfigbuild()-
-
Method Detail
-
languageCodes
abstract AudioTranscriptionConfig.Builder languageCodes(List<String> languageCodes)
Setter for languageCodes.
languageCodes: The language codes of the audio. BCP-47 language code. If not set, the transcription will be in the language detected by the model. If set, the server will use the language code specified in the model config as a hint for the language of the audio
-
languageCodes
@CanIgnoreReturnValue() AudioTranscriptionConfig.Builder languageCodes(Array<String> languageCodes)
Setter for languageCodes.
languageCodes: The language codes of the audio. BCP-47 language code. If not set, the transcription will be in the language detected by the model. If set, the server will use the language code specified in the model config as a hint for the language of the audio
-
clearLanguageCodes
@CanIgnoreReturnValue() AudioTranscriptionConfig.Builder clearLanguageCodes()
Clears the value of languageCodes field.
-
build
abstract AudioTranscriptionConfig build()
-
-
-
-