Class SpeakerVoiceConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpeakerVoiceConfig

public abstract class SpeakerVoiceConfig extends JsonSerializable
Configuration for a single speaker in a multi speaker setup.
  • Constructor Details

    • SpeakerVoiceConfig

      public SpeakerVoiceConfig()
  • Method Details

    • speaker

      public abstract Optional<String> speaker()
      Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
    • voiceConfig

      public abstract Optional<VoiceConfig> voiceConfig()
      Required. The configuration for the voice of this speaker.
    • builder

      public static SpeakerVoiceConfig.Builder builder()
      Instantiates a builder for SpeakerVoiceConfig.
    • toBuilder

      public abstract SpeakerVoiceConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static SpeakerVoiceConfig fromJson(String jsonString)
      Deserializes a JSON string to a SpeakerVoiceConfig object.