TtsEngineProvider
interface TtsEngineProvider<S : TtsEngine.Settings, P : TtsEngine.Preferences<P>, E : PreferencesEditor<P>, F : TtsEngine.Error, V : TtsEngine.Voice>
To be implemented by adapters for third-party TTS engines which can be used with TtsNavigator.
Inheritors
Functions
Link copied to clipboard
Creates an empty set of preferences of this TTS engine provider.
Link copied to clipboard
abstract suspend fun createEngine(publication: Publication, initialPreferences: P): Try<TtsEngine<S, P, F, V>, Error>
Creates a TtsEngine for publication and initialPreferences.
Link copied to clipboard
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
abstract fun updatePlaybackParameters(previousPreferences: P, playbackParameters: PlaybackParameters): P
Updates previousPreferences to honor the given Media3 playbackParameters.