Class PromptedVoice.Builder

java.lang.Object
com.google.genai.gaos.models.voices.PromptedVoice.Builder
Enclosing class:
PromptedVoice

public static final class PromptedVoice.Builder extends Object
  • Method Details

    • baseVoice

      public PromptedVoice.Builder baseVoice(@Nullable String baseVoice)
      Optional. The name or ID of an existing base voice to edit or remix. Use the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for previously created voices (e.g., `voice_abc123`). This can be any prompted or replicated voice that the user has access to. When present, `input` describes relative alterations to make to the base voice.
    • input

      public PromptedVoice.Builder input(@Nonnull String input)
      Required. The natural-language prompt describing the desired voice, e.g. "A deep, booming male voice of a massive evil ogre in his middle years."
    • build

      public PromptedVoice build()