TtsOptions class
Voice, prosody, and output-format controls for tts.
Constructors
- TtsOptions({String? voice, String? language, double? speed, double? pitch, AudioFormat? format, int? sampleRate})
- Override any subset of the synthesis defaults.
Properties
- format → AudioFormat
-
Encoding of the returned audio.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
BCP-47 language tag for the synthesized speech.
no setter
- pitch → double
-
Pitch multiplier.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
Sample rate of the returned audio.
no setter
- speed → double
-
Playback rate multiplier.
no setter
- voice → String?
-
Voice id inside the loaded model. Null uses the engine default.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toProto(
) → TTSOptions - Build the generated TTS options.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited