Package com.google.genai.types
Class AudioTranscriptionConfig
-
- All Implemented Interfaces:
public abstract class AudioTranscriptionConfig extends JsonSerializable
The audio transcription configuration in Setup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAudioTranscriptionConfig.BuilderBuilder for AudioTranscriptionConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AudioTranscriptionConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<String>>languageCodes()The language codes of the audio. static AudioTranscriptionConfig.Builderbuilder()Instantiates a builder for AudioTranscriptionConfig. abstract AudioTranscriptionConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AudioTranscriptionConfigfromJson(String jsonString)Deserializes a JSON string to a AudioTranscriptionConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
languageCodes
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
static AudioTranscriptionConfig.Builder builder()
Instantiates a builder for AudioTranscriptionConfig.
-
toBuilder
abstract AudioTranscriptionConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AudioTranscriptionConfig fromJson(String jsonString)
Deserializes a JSON string to a AudioTranscriptionConfig object.
-
-
-
-