tts-rs

Library Listed

High-level Text-To-Speech (TTS) interface

Checked · Sources

Downloads
21,892
Dependents
19
Stars
143
Forks
26
Contributors
11
Commits
491
Latest release
0.26.3 ·

About

From the project README ·

This library provides a high-level Text-To-Speech (TTS) interface supporting various backends. Currently supported backends are:

  • Windows
    • NVDA via the NVDA Controller Client (requires shipping nvdaControllerClient.dll with your application)
    • Screen readers/SAPI via Tolk (requires tolk Cargo feature)
    • WinRT
  • Linux via Speech Dispatcher
  • macOS/iOS/tvOS/watchOS/visionOS via AVFoundation (macOS 10.14 and above)
  • Android
  • WebAssembly

Android

Plug-and-play like the other platforms — no Java sources, Gradle plugin, or manifest entries in your app — given two things:

Read the full README
  • minSdkVersion 26 or above. The UtteranceProgressListener subclass Android callbacks need ships as an embedded dex, loaded with InMemoryDexClassLoader.
  • A Context supplied before the first Tts, one of two ways. ndk-context is consulted by default; android-activity publishes there for you, including by way of winit or a game engine. Or call tts::android::set_context with a JavaVM and Context of your choosing — it takes precedence over ndk-context and is the right entry point when the process outlives its Activity or never has one, such as speech from a foreground service: ndk-context's slot is typically owned by the Activity's glue and released when it's destroyed, while set_context holds its own reference for as long as backends need it. Either way the supplied context is traded for its application context, so no Activity is pinned.

Nothing here waits for the engine. Android reports it ready on the app's Java main thread, so a backend that blocked for that would deadlock any app whose main thread is itself waiting on the caller — which is every NativeActivity app, since android-activity holds the main thread until the event loop acknowledges each lifecycle callback. Tts::default() therefore returns as soon as the engine has been asked to connect, and anything spoken before it answers is queued and replayed in order. The one exception is synthesize, which returns audio and so has to wait for it; call that off your event-loop thread.

See examples/android_hello_world.rs, built with cargo-apk:

cargo apk run --example android_hello_world
adb logcat -s tts

Editing android/Bridge.java needs a JDK and ANDROID_HOME; build.rs rebuilds the checked-in dex from it.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
Required
  • Binds native code: speech-dispatcher-sys, tolk-sys (feature tolk)
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

tts-rs beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
tts-rs This page Listed

High-level Text-To-Speech (TTS) interface

21,892 downloads over 30 days 19 143 0.26.3 GPU support unknown Binds native code: speech-dispatcher-sys, tolk-sys (feature tolk) MIT

Japanese text preprocessor for Text-to-Speech application (OpenJTalk rewrite in rust language).

14,491 downloads over 30 days 7 61 0.15.0 GPU support unknown No native code found BSD-3-Clause
msedge-tts Listed

This library is a wrapper of MSEdge Read aloud function API. You can use it to synthesize text to speech with many voices MS provided.

5,349 downloads over 30 days 3 27 0.4.1 GPU support unknown No native code found Apache-2.0 OR MIT
xn-ptts Listed

Phonon text-to-speech inference and serving

4,761 downloads over 30 days 1 467 0.6.0 CUDA, WebGPU, Metal, Vulkan No native code found Apache-2.0 OR MIT
aspeak App Listed Dormant

A simple text-to-speech client for Azure TTS API.

Python bindings

488 binary downloads per release Not applicable 496 6.1.0 GPU support unknown No native code found MIT
qwen3_tts_rs App Listed

A Rust implementation of the Qwen3 Text-to-Speech (TTS) model inference.

204 binary downloads per release Not applicable 237 Not measured Not measured None stated
voxr New

Audio and speech on boostr: compressed-audio decode, resampling, DSP and grapheme to phoneme, with speech synthesis (Kokoro, VITS), voice cloning (VoxCPM2), transcription with word timings (Whisper), voice activity (Silero) and audio-text scoring (CLAP), on CPU or CUDA.

642 downloads over 30 days 2 2 0.9.1 CUDA No native code found Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 5 active dependents and 4 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 143 stars, 26 forks and 11 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 7 Aug 2026, 94 days ago. The rules expect an update within 365 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.26.3 base 300, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2026-08-07, 94 days ago, E = 365: active
  • featured: not featured: active_users 5 < 11 and new_adopters 4 < 9 and repository route stars 143 (needs 4539), forks 26 (needs 434), contributors 11 (needs 79)
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption5 active dependents, 4 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents5crates.io database dumpYes
New dependents (365 days)4crates.io database dumpYes
Peak active dependents7crates.io database dumpYes
Active dependents as a share of the peak0.975crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 3 months ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-08-07GitHub repositoryYes
Latest release2024-07-06crates.io database dumpYes
First release2018-12-30crates.io database dumpYes
Latest version0.26.3crates.io database dumpYes
Days the oldest outside issue waits for a reply2091GitHub repositoryYes
Maintainer replies over 365 days5GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution87 releases, 21,892 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases87crates.io database dumpYes
Downloads over 30 days21892crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository143 stars, 26 forks, 11 contributors, 491 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars143GitHub repositoryYes — one part of the repository route
GitHub forks26GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account11GitHub contributorsYes — one part of the repository route
Commits on the default branch491GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: speech-dispatcher-sys, tolk-sys (feature tolk)crates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly19crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.