Enum Class Voice

java.lang.Object
java.lang.Enum<Voice>
io.github.stefanbratanov.jvm.openai.Voice
All Implemented Interfaces:
Serializable, Comparable<Voice>, Constable

public enum Voice extends Enum<Voice>
The voice to use when generating an audio
  • Enum Constant Details

    • ALLOY

      public static final Voice ALLOY
    • ECHO

      public static final Voice ECHO
    • FABLE

      public static final Voice FABLE
    • ONYX

      public static final Voice ONYX
    • NOVA

      public static final Voice NOVA
    • SHIMMER

      public static final Voice SHIMMER
  • Method Details

    • values

      public static Voice[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Voice valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public String getId()