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.

Inheritance

Constructors

SpeechVoice.new(String value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
finalinherited

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