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