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 TypeMethodDescriptionbuilder()Instantiates a builder for AudioTranscriptionConfig.static AudioTranscriptionConfigDeserializes a JSON string to a AudioTranscriptionConfig object.The language codes of 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
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
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.
-