Class PromptedVoice

java.lang.Object
com.google.genai.gaos.models.voices.PromptedVoice

public class PromptedVoice extends Object
PromptedVoice

Parameters for prompted voice generation. Required in `CreateVoice` when `type` is `"prompted"`. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.

  • Constructor Details

    • PromptedVoice

      public PromptedVoice(@Nonnull String input)
  • Method Details

    • input

      public Optional<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."
    • builder

      public static PromptedVoice.Builder builder()
    • withInput

      public PromptedVoice withInput(@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."
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object