
Cross-platform text-to-speech library enabling speech synthesis with coroutine support. Features include volume, pitch, and rate adjustments, with Compose integration for enhanced functionality.
Text-to-Speech library for Kotlin Multiplatform. Supports targets Android, iOS, macOS and browser (js and wasmJs).
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 | |
| iOS, MacOS | Kotlin/Native | β |
| Other Kotlin/Native | Kotlin/Native | β |
rememberTextToSpeechOrNull() available in the tts-compose package.A build tool like Gradle or Maven.
[versions]
textToSpeech = "3.0.0"
[libraries]
textToSpeech = { module = "nl.marc-apps:tts", version.ref = "textToSpeech" }
# Optional: Extensions for Compose
textToSpeech-compose = { module = "nl.marc-apps:tts-compose", version.ref = "textToSpeech" }And add the library to your dependencies:
dependencies {
implementation("nl.marc-apps:tts:3.0.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:3.0.0")
}Or
kotlin {
sourceSets {
commonMain.dependencies {
implementation("nl.marc-apps:tts:3.0.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:3.0.0")
}
}
}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.
Text-to-Speech library for Kotlin Multiplatform. Supports targets Android, iOS, macOS and browser (js and wasmJs).
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 | |
| iOS, MacOS | Kotlin/Native | β |
| Other Kotlin/Native | Kotlin/Native | β |
rememberTextToSpeechOrNull() available in the tts-compose package.A build tool like Gradle or Maven.
[versions]
textToSpeech = "3.0.0"
[libraries]
textToSpeech = { module = "nl.marc-apps:tts", version.ref = "textToSpeech" }
# Optional: Extensions for Compose
textToSpeech-compose = { module = "nl.marc-apps:tts-compose", version.ref = "textToSpeech" }And add the library to your dependencies:
dependencies {
implementation("nl.marc-apps:tts:3.0.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:3.0.0")
}Or
kotlin {
sourceSets {
commonMain.dependencies {
implementation("nl.marc-apps:tts:3.0.0")
// Optional: Extensions for Compose
implementation("nl.marc-apps:tts-compose:3.0.0")
}
}
}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.