Class AudioTranscriptionConfig.Builder

java.lang.Object
com.google.genai.types.AudioTranscriptionConfig.Builder
Enclosing class:
AudioTranscriptionConfig

public abstract static class AudioTranscriptionConfig.Builder extends Object
Builder for AudioTranscriptionConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • languageCodes

      public 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 public AudioTranscriptionConfig.Builder languageCodes(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 public AudioTranscriptionConfig.Builder clearLanguageCodes()
      Clears the value of languageCodes field.
    • build

      public abstract AudioTranscriptionConfig build()