Package com.azure.ai.openai.models
Class SpeechVoice
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SpeechVoice>
com.azure.ai.openai.models.SpeechVoice
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The available voices for text-to-speech.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpeechVoiceThe Alloy voice.static final SpeechVoiceThe Echo voice.static final SpeechVoiceThe Fable voice.static final SpeechVoiceThe Nova voice.static final SpeechVoiceThe Onyx voice.static final SpeechVoiceThe Shimmer voice. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechVoicefromString(String name) Creates or finds a SpeechVoice from its string representation.static Collection<SpeechVoice> values()Gets known SpeechVoice values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ALLOY
The Alloy voice. -
ECHO
The Echo voice. -
FABLE
The Fable voice. -
ONYX
The Onyx voice. -
NOVA
The Nova voice. -
SHIMMER
The Shimmer voice.
-
-
Constructor Details
-
SpeechVoice
Deprecated.Use thefromString(String)factory method.Creates a new instance of SpeechVoice value.
-
-
Method Details
-
fromString
Creates or finds a SpeechVoice from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SpeechVoice.
-
values
Gets known SpeechVoice values.- Returns:
- known SpeechVoice values.
-
fromString(String)factory method.