Class VoiceInput
java.lang.Object
com.google.genai.gaos.models.voices.VoiceInput
VoiceInput
A voice resource representing either a custom voice (created via `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionVoiceInput(VoiceType type) VoiceInput(String accent, String context, String description, String displayName, String gender, String languageCode, String model, String persona, Pitch pitch, PromptedVoice prompted, String regionCode, ReplicatedVoice replicated, AudioData sampleAudio, VoiceType type) -
Method Summary
Modifier and TypeMethodDescriptionaccent()Optional.static VoiceInput.Builderbuilder()context()Optional.Optional.Optional.booleangender()Optional.inthashCode()Optional.model()Optional.persona()Optional.pitch()prompted()Parameters for prompted voice generation.Optional.Input only.Audio payload used for voice creation.toString()type()withAccent(String accent) Optional.withContext(String context) Optional.withDescription(String description) Optional.withDisplayName(String displayName) Optional.withGender(String gender) Optional.withLanguageCode(String languageCode) Optional.Optional.withPersona(String persona) Optional.withPrompted(PromptedVoice prompted) Parameters for prompted voice generation.withRegionCode(String regionCode) Optional.withReplicated(ReplicatedVoice replicated) Input only.withSampleAudio(AudioData sampleAudio) Audio payload used for voice creation.
-
Constructor Details
-
VoiceInput
public VoiceInput(@Nullable String accent, @Nullable String context, @Nullable String description, @Nullable String displayName, @Nullable String gender, @Nullable String languageCode, @Nullable String model, @Nullable String persona, @Nullable Pitch pitch, @Nullable PromptedVoice prompted, @Nullable String regionCode, @Nullable ReplicatedVoice replicated, @Nullable AudioData sampleAudio, @Nonnull VoiceType type) -
VoiceInput
-
-
Method Details
-
accent
Optional. Regional accent descriptor (e.g. "American", "British"). -
context
Optional. Optimal usage context or domain (e.g. "Conversational", "Audiobook", "News"). -
description
Optional. Descriptive summary of vocal timbre, personality, and tone. -
displayName
Optional. User-provided display name for a stored voice (`store = true`), or the catalog name for a prebuilt voice. -
gender
Optional. Perceived voice gender presentation (e.g. "female", "male", "neutral"). -
languageCode
Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). -
model
Optional. The model used to design or replicate the voice. If omitted in `CreateVoice`, defaults to the latest supported voice design model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"` voices. Created voices can be synthesized across any supported TTS synthesis model. -
persona
Optional. Intended persona or character archetype (e.g. "Warm, Friendly", "Narrator"). -
pitch
-
prompted
Parameters for prompted voice generation. Required in `CreateVoice` when `type` is `"prompted"`. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices. -
regionCode
Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US", "GB", "001"). -
replicated
Input only. Parameters for replicated voice generation. Required on input when `type` is `"replicated"`. Not returned in responses. -
sampleAudio
Audio payload used for voice creation. -
type
-
builder
-
withAccent
Optional. Regional accent descriptor (e.g. "American", "British"). -
withContext
Optional. Optimal usage context or domain (e.g. "Conversational", "Audiobook", "News"). -
withDescription
Optional. Descriptive summary of vocal timbre, personality, and tone. -
withDisplayName
Optional. User-provided display name for a stored voice (`store = true`), or the catalog name for a prebuilt voice. -
withGender
Optional. Perceived voice gender presentation (e.g. "female", "male", "neutral"). -
withLanguageCode
Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). -
withModel
Optional. The model used to design or replicate the voice. If omitted in `CreateVoice`, defaults to the latest supported voice design model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"` voices. Created voices can be synthesized across any supported TTS synthesis model. -
withPersona
Optional. Intended persona or character archetype (e.g. "Warm, Friendly", "Narrator"). -
withPitch
-
withPrompted
Parameters for prompted voice generation. Required in `CreateVoice` when `type` is `"prompted"`. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices. -
withRegionCode
Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US", "GB", "001"). -
withReplicated
Input only. Parameters for replicated voice generation. Required on input when `type` is `"replicated"`. Not returned in responses. -
withSampleAudio
Audio payload used for voice creation. -
withType
-
equals
-
hashCode
public int hashCode() -
toString
-