
commonMain.nl.marc_apps.tts.errors.TextToSpeechInitialisationErrors.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tts Show documentation
Show all versions of tts Show documentation
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.
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