Kotlin Multiplatform Text-to-Speech library for Android and browser (Kotlin/JS & Kotlin/Wasm)
MIT License
Kotlin Multiplatform Text-to-Speech library for Android and browser (Kotlin/JS & Kotlin/Wasm).
Uses Kotlin Multiplatform with support for the following targets:
Platform | Language | Support |
---|---|---|
Android | Kotlin/JVM | ✅ |
Browser | Kotlin/JS | ✅ |
Browser | Kotlin/Wasm | ✅ |
Browser | JS, TS | ❌ Support ended in v2.0 |
Desktop | Kotlin/JVM | ⚠️ Experimental support |
iOS | Kotlin/Native | ❌ |
Other Kotlin/Native | Kotlin/Native | ❌ |
rememberTextToSpeechOrNull()
(works in multiplatform code!)A build tool like Gradle or Maven.
Configure the Maven Central repository:
repositories {
mavenCentral()
}
And add the library to your dependencies:
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
implementation("nl.marc-apps:tts:2.5.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:2.5.0")
}
Or
kotlin {
sourceSets {
commonMain.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
implementation("nl.marc-apps:tts:2.5.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:2.5.0")
}
}
}
Make sure to configure the latest stable version:
Add the library to your dependencies:
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>nl.marc-apps</groupId>
<artifactId>tts</artifactId>
<version>2.5.0</version>
</dependency>
<!-- Optional: Extensions for Compose -->
<dependency>
<groupId>nl.marc-apps</groupId>
<artifactId>tts-compose</artifactId>
<version>2.5.0</version>
</dependency>
Make sure to configure the latest stable version:
View documentation generated by Dokka
Go to the /demo directory of this project.
This project is published under the MIT License. Read more about this license in the LICENSE
file.