Class SpeechVoice

java.lang.Object
com.azure.core.util.ExpandableStringEnum<SpeechVoice>
com.azure.ai.openai.models.SpeechVoice

public final class SpeechVoice extends com.azure.core.util.ExpandableStringEnum<SpeechVoice>
The available voices for text-to-speech.
  • Field Details

    • ALLOY

      public static final SpeechVoice ALLOY
      The Alloy voice.
    • ECHO

      public static final SpeechVoice ECHO
      The Echo voice.
    • FABLE

      public static final SpeechVoice FABLE
      The Fable voice.
    • ONYX

      public static final SpeechVoice ONYX
      The Onyx voice.
    • NOVA

      public static final SpeechVoice NOVA
      The Nova voice.
    • SHIMMER

      public static final SpeechVoice SHIMMER
      The Shimmer voice.
  • Constructor Details

    • SpeechVoice

      @Deprecated public SpeechVoice()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of SpeechVoice value.
  • Method Details

    • fromString

      public static SpeechVoice fromString(String name)
      Creates or finds a SpeechVoice from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding SpeechVoice.
    • values

      public static Collection<SpeechVoice> values()
      Gets known SpeechVoice values.
      Returns:
      known SpeechVoice values.