SpeechVoice class
Built-in voice presets (TTS).
If OpenAI introduces additional voices later, callers can still pass a
plain String
in the voice:
parameter, but these enum values give you
compile-time safety for the known set.
Constructors
- SpeechVoice.new(String value)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
String raw) → SpeechVoice
Constants
- alloy → const SpeechVoice
- ash → const SpeechVoice
- ballad → const SpeechVoice
- coral → const SpeechVoice
- echo → const SpeechVoice
- fable → const SpeechVoice
- nova → const SpeechVoice
- onyx → const SpeechVoice
- sage → const SpeechVoice
- shimmer → const SpeechVoice
- verse → const SpeechVoice