Package com.google.genai.types
Class MultiSpeakerVoiceConfig
-
- All Implemented Interfaces:
public abstract class MultiSpeakerVoiceConfig extends JsonSerializable
Configuration for a multi-speaker text-to-speech request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classMultiSpeakerVoiceConfig.BuilderBuilder for MultiSpeakerVoiceConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description MultiSpeakerVoiceConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<SpeakerVoiceConfig>>speakerVoiceConfigs()Required. static MultiSpeakerVoiceConfig.Builderbuilder()Instantiates a builder for MultiSpeakerVoiceConfig. abstract MultiSpeakerVoiceConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static MultiSpeakerVoiceConfigfromJson(String jsonString)Deserializes a JSON string to a MultiSpeakerVoiceConfig 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
-
speakerVoiceConfigs
abstract Optional<List<SpeakerVoiceConfig>> speakerVoiceConfigs()
Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
-
builder
static MultiSpeakerVoiceConfig.Builder builder()
Instantiates a builder for MultiSpeakerVoiceConfig.
-
toBuilder
abstract MultiSpeakerVoiceConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static MultiSpeakerVoiceConfig fromJson(String jsonString)
Deserializes a JSON string to a MultiSpeakerVoiceConfig object.
-
-
-
-