TTSPreferences class

Implemented types
Annotations

Constructors

TTSPreferences({double? speed, double? pitch, String? voiceIdentifier, Map<String, String> voices = const {}, String? languageOverride, ControlPanelInfoType? controlPanelInfoType, PageBreakBehavior? pageBreakBehavior, ControlPanelTimebase? controlPanelTimebase})
const
TTSPreferences.fromJson(Map<String, dynamic> json)
factory

Properties

controlPanelInfoType → ControlPanelInfoType?
Control panel info type to determine what information is sent to the control panel during TTS playback.
final
controlPanelTimebase → ControlPanelTimebase?
Whether the system control panel timeline should use chapter or publication time.
final
hashCode → int
The hash code for this object.
no setterinherited
languageOverride → String?
Force language for TTS, ignoring the language specified in the publication.
final
pageBreakBehavior → PageBreakBehavior?
How page-break elements are handled during TTS playback. When null, defaults to PageBreakBehavior.readAsIs.
final
pitch → double?
The pitch for text-to-speech. A value of 1.0 is the normal pitch, less than 1.0 is lower, and greater than 1.0 is higher.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → double?
The speech rate (speed) for text-to-speech. A value of 1.0 is the normal speed, less than 1.0 is slower, and greater than 1.0 is faster.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
voiceIdentifier → String?
The identifier of the voice to use for text-to-speech. This should correspond to one of the available voices returned by ttsGetAvailableVoices.
final
voices → Map<String, String>
More detailed voice settings for Android, where you can set a voice per language.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes the object to its JSON representation.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited