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()
      Deprecated: use LanguageAuto or LanguageHints instead.
    • languageAuto

      public abstract Optional<LanguageAuto> languageAuto()
      The model will detect the language automatically. Do not use together with LanguageHints.
    • languageHints

      public abstract Optional<LanguageHints> languageHints()
      Specifies one or more languages in the audio. Do not use together with LanguageAuto.
    • adaptationPhrases

      public abstract Optional<List<String>> adaptationPhrases()
      A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.
    • 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.