Package com.google.genai.types
Class SpeechConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeechConfig
The speech generation configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechConfig.Builderbuilder()Instantiates a builder for SpeechConfig.static SpeechConfigDeserializes a JSON string to a SpeechConfig object.abstract SpeechConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<VoiceConfig>The configuration for the speaker to use.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SpeechConfig
public SpeechConfig()
-
-
Method Details
-
voiceConfig
The configuration for the speaker to use. -
builder
Instantiates a builder for SpeechConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SpeechConfig object.
-