Package com.google.genai.types
Class PrebuiltVoiceConfig
-
- All Implemented Interfaces:
public abstract class PrebuiltVoiceConfig extends JsonSerializable
Configuration for a prebuilt voice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classPrebuiltVoiceConfig.BuilderBuilder for PrebuiltVoiceConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description PrebuiltVoiceConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>voiceName()The name of the prebuilt voice to use. static PrebuiltVoiceConfig.Builderbuilder()Instantiates a builder for PrebuiltVoiceConfig. abstract PrebuiltVoiceConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static PrebuiltVoiceConfigfromJson(String jsonString)Deserializes a JSON string to a PrebuiltVoiceConfig 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
-
builder
static PrebuiltVoiceConfig.Builder builder()
Instantiates a builder for PrebuiltVoiceConfig.
-
toBuilder
abstract PrebuiltVoiceConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static PrebuiltVoiceConfig fromJson(String jsonString)
Deserializes a JSON string to a PrebuiltVoiceConfig object.
-
-
-
-