Package com.google.genai.types
Class AudioTranscriptionConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AudioTranscriptionConfig
The audio transcription configuration in Setup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AudioTranscriptionConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.builder()Instantiates a builder for AudioTranscriptionConfig.static AudioTranscriptionConfigDeserializes a JSON string to a AudioTranscriptionConfig object.abstract Optional<LanguageAuto>The model will detect the language automatically.Deprecated: use LanguageAuto or LanguageHints instead.abstract Optional<LanguageHints>Specifies one or more languages in the audio.abstract AudioTranscriptionConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
AudioTranscriptionConfig
public AudioTranscriptionConfig()
-
-
Method Details
-
languageCodes
Deprecated: use LanguageAuto or LanguageHints instead. -
languageAuto
The model will detect the language automatically. Do not use together with LanguageHints. -
languageHints
Specifies one or more languages in the audio. Do not use together with LanguageAuto. -
adaptationPhrases
A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. -
builder
Instantiates a builder for AudioTranscriptionConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AudioTranscriptionConfig object.
-