Class MultiSpeakerVoiceConfig.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • speakerVoiceConfigs

      public abstract MultiSpeakerVoiceConfig.Builder speakerVoiceConfigs(List<SpeakerVoiceConfig> speakerVoiceConfigs)
      Setter for speakerVoiceConfigs.

      speakerVoiceConfigs: Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.

    • speakerVoiceConfigs

      @CanIgnoreReturnValue public MultiSpeakerVoiceConfig.Builder speakerVoiceConfigs(SpeakerVoiceConfig... speakerVoiceConfigs)
      Setter for speakerVoiceConfigs.

      speakerVoiceConfigs: Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.

    • speakerVoiceConfigs

      @CanIgnoreReturnValue public MultiSpeakerVoiceConfig.Builder speakerVoiceConfigs(SpeakerVoiceConfig.Builder... speakerVoiceConfigsBuilders)
      Setter for speakerVoiceConfigs builder.

      speakerVoiceConfigs: Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.

    • clearSpeakerVoiceConfigs

      @CanIgnoreReturnValue public MultiSpeakerVoiceConfig.Builder clearSpeakerVoiceConfigs()
      Clears the value of speakerVoiceConfigs field.
    • build

      public abstract MultiSpeakerVoiceConfig build()