Package com.google.genai.types
Class SpeechConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeechConfig
The speech generation config.
-
Nested Class Summary
Nested Classes -
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>The configuration for the speaker to use.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SpeechConfig
public SpeechConfig()
-
-
Method Details
-
languageCode
Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. -
voiceConfig
The configuration for the speaker to use. -
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.
-