Class SpeakerVoiceConfig

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

public abstract class SpeakerVoiceConfig extends JsonSerializable
The configuration for the speaker to use.
  • Constructor Details

    • SpeakerVoiceConfig

      public SpeakerVoiceConfig()
  • Method Details

    • speaker

      public abstract Optional<String> speaker()
      The name of the speaker to use. Should be the same as in the prompt.
    • voiceConfig

      public abstract Optional<VoiceConfig> voiceConfig()
      The configuration for the voice to use.
    • 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.