All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.nl.marc_apps.tts.errors.TextToSpeechInitialisationErrors.kt Maven / Gradle / Ivy

Go to download

Kotlin Multiplatform Text-to-Speech library for Android and browser (Kotlin/JS & Kotlin/Wasm). This library will enable you to use Text-to-Speech in multiplatform Kotlin projects.

There is a newer version: 3.0.0-beta.1
Show newest version
package nl.marc_apps.tts.errors

/** Error that is thrown when creating a [nl.marc_apps.tts.TextToSpeechInstance] fails. */
sealed class TextToSpeechInitialisationError(
    message: String? = "Error while trying to load Text-to-Speech service",
    cause: Throwable? = null
) : Exception(message, cause)

/** Error that is thrown when creating a [nl.marc_apps.tts.TextToSpeechInstance] fails. */
class UnknownTextToSpeechInitialisationError(
    cause: Throwable? = null
) : TextToSpeechInitialisationError(cause = cause)

/** Error that is thrown when a platform does not have TTS support */
class TextToSpeechNotSupportedError(
    cause: Throwable? = null
) : TextToSpeechInitialisationError("Text-to-Speech is not supported on this platform", cause)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy