Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nl.marc-apps:tts-browser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nl.marc-apps:tts-browser

Multiplatform Text-to-Speech library for Android and Browser (JS). This library will enable you to use Text-to-Speech in multiplatform Kotlin projects.

  • 2.2.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

TextToSpeechKt

Multiplatform Text-to-Speech library for Android and Browser (JS).

Gradle deployment Quality Gate Status Maven Central License

:notebook_with_decorative_cover: Table of Contents

:star2: About the Project

:space_invader: Tech Stack

Uses Kotlin Multiplatform with support for the following targets:

PlatformLanguageSupport
AndroidKotlin/JVM
BrowserKotlin/JS
BrowserKotlin/Wasm
BrowserJS, TSSupport ended in v2.0
DesktopKotlin/JVM⚠️ Experimental support
iOSKotlin/Native
Other Kotlin/NativeKotlin/Native

:dart: Features

  • Create the engine with Kotlin Coroutines
  • Await speech synthesis completion using Kotlin Coroutines
  • Modify the volume or mute the volume entirely
  • Modify the voice pitch
  • Modify the voice rate
  • Compose support with rememberTextToSpeechOrNull() (works in multiplatform code!)

:toolbox: Getting Started

:bangbang: Prerequisites

A build tool like Gradle or Maven.

:gear: Installation

Gradle

Configure the Maven Central repository:

repositories {
    mavenCentral()
}

And add the library to your dependencies:

dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
    implementation("nl.marc-apps:tts:2.0.0")

    // Optional: Extensions for Compose
    implementation("nl.marc-apps:tts-compose:2.0.0")
}

Or

kotlin {
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
                implementation("nl.marc-apps:tts:2.0.0")

                // Optional: Extensions for Compose
                implementation("nl.marc-apps:tts-compose:2.0.0")
            }
        }
    }
}

Make sure to configure the latest stable version: Maven Central

Apache Maven

Add the library to your dependencies:

<dependency>
    <groupId>org.jetbrains.kotlinx</groupId>
    <artifactId>kotlinx-coroutines-core</artifactId>
    <version>1.7.3</version>
</dependency>
<dependency>
    <groupId>nl.marc-apps</groupId>
    <artifactId>tts</artifactId>
    <version>2.0.0</version>
</dependency>
<!-- Optional: Extensions for Compose -->
<dependency>
    <groupId>nl.marc-apps</groupId>
    <artifactId>tts-compose</artifactId>
    <version>2.0.0</version>
</dependency>

Make sure to configure the latest stable version: Maven Central

:eyes: Usage

Documentation files

View documentation generated by Dokka

Demo projects

Go to the /demo directory of this project.

:warning: License

This project is published under the MIT License. Read more about this license in the LICENSE file.

:gem: Acknowledgements

FAQs

Package last updated on 15 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc