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

commonMain.nl.marc_apps.tts.TextToSpeechFactory.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

/**
 * Factory class to create a Text-to-Speech instance.
 */
expect class TextToSpeechFactory {
    val isSupported: Boolean

    val canChangeVolume: Boolean

    suspend fun create(): Result

    @Throws(RuntimeException::class)
    suspend fun createOrThrow(): TextToSpeechInstance

    suspend fun createOrNull(): TextToSpeechInstance?
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy