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 TypeMethodDescriptionDeprecated.builder()Instantiates a builder for AudioTranscriptionConfig.A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms.Configures speaker diarization.static AudioTranscriptionConfigDeserializes a JSON string to a AudioTranscriptionConfig object.abstract Optional<LanguageAuto>Deprecated: Auto-detection is now the default when language_codes is omitted.BCP-47 language codes providing hints about the languages present in the audio.abstract Optional<LanguageHints>Deprecated: Use top-level language_codes instead.abstract AudioTranscriptionConfig.BuilderCreates a builder with the same values as this instance.Configures word-level timestamp generation.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
AudioTranscriptionConfig
public AudioTranscriptionConfig()
-
-
Method Details
-
languageCodes
BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. -
languageAuto
Deprecated: Auto-detection is now the default when language_codes is omitted. This field will be removed in a future version. -
languageHints
Deprecated: Use top-level language_codes instead. This field will be removed in a future version. -
customVocabulary
A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms. -
adaptationPhrases
Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. -
diarization
Configures speaker diarization. -
wordTimestamp
Configures word-level timestamp generation. -
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.
-