public enum TtsVoice extends Enum<TtsVoice>
具体语音效果参考:https://platform.openai.com/docs/guides/text-to-speech
| Enum Constant and Description |
|---|
ALLOY |
ECHO |
FABLE |
NOVA |
ONYX |
SHIMMER |
| Modifier and Type | Method and Description |
|---|---|
static TtsVoice |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TtsVoice[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TtsVoice ALLOY
public static final TtsVoice ECHO
public static final TtsVoice FABLE
public static final TtsVoice ONYX
public static final TtsVoice NOVA
public static final TtsVoice SHIMMER
public static TtsVoice[] values()
for (TtsVoice c : TtsVoice.values()) System.out.println(c);
public static TtsVoice valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023 grt1228. All rights reserved.