Package com.google.genai.types
Class SpeechConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeechConfig
None
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechConfig.Builderbuilder()Instantiates a builder for SpeechConfig.static SpeechConfigDeserializes a JSON string to a SpeechConfig object.Optional.abstract Optional<MultiSpeakerVoiceConfig>Optional.abstract SpeechConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<VoiceConfig>Configuration for the voice of the response.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SpeechConfig
public SpeechConfig()
-
-
Method Details
-
voiceConfig
Configuration for the voice of the response. -
languageCode
Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. -
multiSpeakerVoiceConfig
Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field. This field is not supported in Vertex AI. -
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.
-