Package com.google.genai.types
Class SpeechMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeechMetadata
Extra metadata associated with the part for speech synthesis.
-
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 SpeechMetadata.Builderbuilder()Instantiates a builder for SpeechMetadata.static SpeechMetadataDeserializes a JSON string to a SpeechMetadata object.speaker()The speaker for this part, which must match a `speaker` name in `MultiSpeakerVoiceConfig.speaker_voice_configs`.style()The style instruction for how the voice should be synthesized (e.g.abstract SpeechMetadata.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SpeechMetadata
public SpeechMetadata()
-
-
Method Details
-
speaker
The speaker for this part, which must match a `speaker` name in `MultiSpeakerVoiceConfig.speaker_voice_configs`. -
style
The style instruction for how the voice should be synthesized (e.g. "excited, fast-paced"). -
builder
Instantiates a builder for SpeechMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SpeechMetadata object.
-