Class SpeechMetadata.Builder

java.lang.Object
com.google.genai.types.SpeechMetadata.Builder
Enclosing class:
SpeechMetadata

public abstract static class SpeechMetadata.Builder extends Object
Builder for SpeechMetadata.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • speaker

      public abstract SpeechMetadata.Builder speaker(String speaker)
      Setter for speaker.

      speaker: The speaker for this part, which must match a `speaker` name in `MultiSpeakerVoiceConfig.speaker_voice_configs`.

    • clearSpeaker

      @CanIgnoreReturnValue public SpeechMetadata.Builder clearSpeaker()
      Clears the value of speaker field.
    • style

      public abstract SpeechMetadata.Builder style(String style)
      Setter for style.

      style: The style instruction for how the voice should be synthesized (e.g. "excited, fast-paced").

    • clearStyle

      @CanIgnoreReturnValue public SpeechMetadata.Builder clearStyle()
      Clears the value of style field.
    • build

      public abstract SpeechMetadata build()