Enum Class OpenAiAudioApi.TtsModel
- All Implemented Interfaces:
Serializable
,Comparable<OpenAiAudioApi.TtsModel>
,Constable
- Enclosing class:
- OpenAiAudioApi
TTS is an AI model that converts text to natural sounding spoken text. We offer two
different model variates, tts-1 is optimized for real time text to speech use cases
and tts-1-hd is optimized for quality. These models can be used with the Speech
endpoint in the Audio API. Reference:
TTS
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static OpenAiAudioApi.TtsModel
Returns the enum constant of this class with the specified name.static OpenAiAudioApi.TtsModel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TTS_1
The latest text to speech model, optimized for speed. -
TTS_1_HD
The latest text to speech model, optimized for quality.
-
-
Field Details
-
value
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
-