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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechConfig.Builder
builder()
Instantiates a builder for SpeechConfig.static SpeechConfig
Deserializes a JSON string to a SpeechConfig object.Language code (ISO 639.abstract Optional<MultiSpeakerVoiceConfig>
The configuration for the multi-speaker setup.abstract SpeechConfig.Builder
Creates 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
stringToJsonNode, toJson
-
Constructor Details
-
SpeechConfig
public SpeechConfig()
-
-
Method Details
-
voiceConfig
The configuration for the speaker to use. -
multiSpeakerVoiceConfig
The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field. -
languageCode
Language code (ISO 639. e.g. en-US) for the speech synthesization. Only available for Live API. -
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.
-