Class AudioTranscriptionConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AudioTranscriptionConfig

public abstract class AudioTranscriptionConfig extends JsonSerializable
The audio transcription configuration in Setup.
  • Constructor Details

    • AudioTranscriptionConfig

      public AudioTranscriptionConfig()
  • Method Details

    • languageCodes

      public abstract Optional<List<String>> 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
    • builder

      public static AudioTranscriptionConfig.Builder builder()
      Instantiates a builder for AudioTranscriptionConfig.
    • toBuilder

      public abstract AudioTranscriptionConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static AudioTranscriptionConfig fromJson(String jsonString)
      Deserializes a JSON string to a AudioTranscriptionConfig object.