Class VoiceConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class VoiceConfig.Builder

      Builder for VoiceConfig.

    • Constructor Summary

      Constructors 
      Constructor Description
      VoiceConfig()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<ReplicatedVoiceConfig> replicatedVoiceConfig() The configuration for a replicated voice, which is a clone of a user's voice that can be used for speech synthesis.
      abstract Optional<PrebuiltVoiceConfig> prebuiltVoiceConfig() The configuration for a prebuilt voice.
      static VoiceConfig.Builder builder() Instantiates a builder for VoiceConfig.
      abstract VoiceConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static VoiceConfig fromJson(String jsonString) Deserializes a JSON string to a VoiceConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait