AndroidTtsEngineProvider

Constructors

Link copied to clipboard
constructor(context: Context, defaults: AndroidTtsDefaults = AndroidTtsDefaults(), voiceSelector: AndroidTtsEngine.VoiceSelector = AndroidTtsEngine.VoiceSelector { _, _ -> null })

Functions

Link copied to clipboard

Creates an empty set of preferences of this TTS engine provider.

Link copied to clipboard
open suspend override fun createEngine(publication: Publication, initialPreferences: AndroidTtsPreferences): Try<AndroidTtsEngine, Error>
Link copied to clipboard
open override fun createPreferencesEditor(publication: Publication, initialPreferences: AndroidTtsPreferences): AndroidTtsPreferencesEditor

Creates a preferences editor for publication and initialPreferences.

Link copied to clipboard

Computes Media3 PlaybackParameters from the given settings.

Link copied to clipboard

Maps an engine-specific error to Media3 PlaybackException.

Link copied to clipboard
open override fun updatePlaybackParameters(previousPreferences: AndroidTtsPreferences, playbackParameters: PlaybackParameters): AndroidTtsPreferences

Updates previousPreferences to honor the given Media3 playbackParameters.