ReaderTTSVoiceUtils class abstract
Utility functions for loading and matching Readium Speech voice metadata.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
ensureReadiumVoiceDataLoaded(
) → Future< void> - Ensure the Readium Speech voice data is loaded from the bundled asset before trying to match against it.
-
getVoiceMetadata(
String language, String identifier, String? name) → ReadiumSpeechVoice? - Returns Readium Speech metadata for a platform voice, if it is known.
-
getVoiceName(
String language, String identifier, String? name) → String - Returns a friendly name for Android voices, preserving platform names elsewhere.
-
matchVoiceData(
{required String language, required String identifier, required List< ReadiumSpeechVoice> voices, String? name}) → ReadiumSpeechVoice? - Matches a platform voice to Readium Speech metadata for its language.