any-tts
Library Listed
A Rust TTS library with Candle backends and runtime adapters for modern open TTS models
- Downloads
- 3,404
- Dependents
- 2
- Stars
- 23
- Forks
- 6
- Contributors
- 2
- Commits
- 33
- Latest release
- 0.2.0 ·
About
Rust-native text-to-speech and speech synthesis for modern open-weight models.
any-tts is a Rust TTS library built around Candle with one trait-based API for Kokoro, OmniVoice, Qwen3-TTS, VibeVoice, VibeVoice Realtime, and Voxtral. It is aimed at developers who want local speech synthesis, multilingual TTS, reference-audio prompting, preset-voice workflows, or low-latency voice agents without rewriting their application around each model family.
You can point it at local files, hand it explicit paths from your own cache, feed it named in-memory byte assets from an object store, or let it resolve missing assets from Hugging Face while keeping the synthesis call site unchanged.
For Flow-like specifically: every public backend can now load from relative-path byte assets, so object_store reads can go straight into TtsConfig without writing temp files first.
Jump to
- Supported TTS models
- Installation
- Quick start
- Examples in this repo
- Model guide
Read the full README
Why this repo exists
- One API for Kokoro, OmniVoice, Qwen3-TTS, VibeVoice, VibeVoice Realtime, and Voxtral.
- Native Rust backends across the public model surface.
- Local path loading, in-memory byte bundles, per-file wiring, or Hugging Face fallback.
- GPU first when available through CUDA or Metal, with CPU fallback and optional Accelerate support for Apple CPU builds.
- Request-level control for
language,voice,reference_audio,instruct,max_tokens,temperature,speed, andcfg_scale. - WAV output everywhere, with built-in WAV and MP3 input decoding for cleanup and reference-audio workflows.
Supported TTS models
| Model | Status in any-tts | Default upstream | Best at | Main tradeoff | Model license |
|---|---|---|---|---|---|
| Kokoro-82M | Public, native, lightweight | hexgrad/Kokoro-82M | Fast local TTS with small weights | Uses an in-tree pure-Rust phonemizer compatible with Kokoro's current public language set; parity tuning is still ongoing | Apache-2.0 |
| OmniVoice | Public, native | k2-fsa/OmniVoice | Huge language coverage and instruct-driven voice design | The current Rust backend does not yet expose upstream zero-shot cloning | Apache-2.0 |
| Qwen3-TTS-12Hz-1.7B | Public, native | Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice | Strong multilingual control, named speakers, and instruct handling | Heavy weights and extra speech-tokenizer assets | Apache-2.0 |
| VibeVoice-1.5B | Public, native | microsoft/VibeVoice-1.5B | Long-form multi-speaker speech diffusion with native Rust inference | Still early and currently optimized for single-request parity work rather than streaming performance | MIT |
| VibeVoice-Realtime-0.5B | Public, native | microsoft/VibeVoice-Realtime-0.5B | Low-latency preset-voice TTS with native Rust inference | English-first upstream and depends on cached voices/*.pt presets instead of reference audio | MIT |
| Voxtral-4B-TTS-2603 | Public, native | mistralai/Voxtral-4B-TTS-2603 | Production-style voice agents, preset voices, low-latency oriented stack | Largest backend here and not commercially permissive | CC BY-NC 4.0 |
Important: the Rust crate is dual licensed under MIT OR Apache-2.0. The model weights are not. Always check the model-specific license before shipping. Voxtral is the one that changes the deployment story the most because its published checkpoint is CC BY-NC 4.0.
All six models above are exposed through the public ModelType enum and load_model() API.
Choose a backend
- Use
Kokorowhen you want the smallest local deployment and simple preset-voice TTS. - Use
OmniVoicewhen language coverage andinstructmatter more than named voices. - Use
Qwen3Ttswhen you want the strongest public request-control surface and named speakers. - Use
VibeVoicewhen you need long-form or reference-audio-conditioned generation. - Use
VibeVoiceRealtimewhen you want cached-prompt preset voices and faster time-to-first-audio. - Use
Voxtralwhen you want preset-voice, voice-agent-style deployment and can accept its model license.
Installation
For CPU-only builds, a recent stable Rust toolchain is enough. For GPU builds, compile the feature set that matches your machine. Kokoro no longer requires a system espeak-ng install: the repo now ships an in-tree pure-Rust phonemizer with an espeak-rs-compatible interface for the language set exposed by the current Kokoro backend.
English phonemization preserves sentence context and Kokoro's trained phoneme
symbols, with separate American and British dictionaries. Unknown words use a
bounded, cached Rust fallback; no external executable or runtime download is
used. Numbers, decimals, currencies and percentages are normalized before
non-English sentence splitting. Non-English pronunciation still uses the
in-tree rule frontend; it does not promise complete native eSpeak parity.
Embedded G2P sources and dictionaries retain their upstream licenses and pinned
provenance in src/models/kokoro/g2p/NOTICE.
Add the crate from crates.io:
[dependencies]
any-tts = "0.1"
Or opt into a smaller feature set:
[dependencies]
any-tts = { version = "0.1", default-features = false, features = ["kokoro", "download", "metal"] }
Feature flags
By default the crate enables qwen3-tts, kokoro, omnivoice, vibevoice, voxtral, and download. The vibevoice feature exposes both ModelType::VibeVoice and ModelType::VibeVoiceRealtime.
| Feature | What it does |
|---|---|
kokoro | Enables the Kokoro backend. |
omnivoice | Enables the native OmniVoice backend. |
qwen3-tts | Enables the Qwen3-TTS backend. |
vibevoice | Enables the native VibeVoice and VibeVoice Realtime backends. |
voxtral | Enables the native Voxtral backend. |
download | Allows missing model files to be pulled from Hugging Face Hub through the crate's built-in downloader. |
cuda | Builds Candle with CUDA support. |
metal | Builds Candle with Metal support for Apple GPUs. |
accelerate | Enables Apple Accelerate support for CPU-heavy Apple builds. |
Backend selection
DeviceSelection::Autotries CUDA first, then Metal, then CPU.DeviceSelection::Cpu,DeviceSelection::Cuda(0), andDeviceSelection::Metal(0)let you force the runtime target.preferred_runtime_choice(ModelType::...)returns the fastest safe device and dtype for the current machine.TtsConfig::with_preferred_runtime()applies that runtime choice in one builder call.DTypecan be set toF32,F16, orBF16.- On CPU, models that cannot safely run BF16 fall back to
F32. - The native OmniVoice helper prefers
cuda:0 (bf16), thenmetal:0 (f32), thencpu (f32).
Quick start
use any_tts::{load_model, ModelType, SynthesisRequest, TtsConfig};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let model = load_model(
TtsConfig::new(ModelType::Qwen3Tts)
.with_model_path("./models/Qwen3-TTS")
)?;
let audio = model.synthesize(
&SynthesisRequest::new("Hello from Rust TTS.")
.with_language("English")
.with_voice("Ryan")
.with_instruct("Calm, clear, slightly upbeat."),
)?;
audio.save_wav("hello.wav")?;
Ok(())
}
Byte-first loading
If your runtime already has model artifacts in memory, use ModelAssetBundle or the with_*_bytes() builders instead of writing them to disk first.
use any_tts::{load_model, ModelAssetBundle, ModelType, SynthesisRequest, TtsConfig};
fn read_object(_key: &str) -> Result<Vec<u8>, Box<dyn std::error::Error>> {
Ok(Vec::new())
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
let assets = ModelAssetBundle::new()
.with_bytes("config.json", read_object("config.json")?)
.with_bytes("tokenizer.json", read_object("tokenizer.json")?)
.with_bytes("model.safetensors", read_object("model.safetensors")?)
.with_bytes(
"speech_tokenizer/model.safetensors",
read_object("speech_tokenizer/model.safetensors")?,
);
let model = load_model(
TtsConfig::new(ModelType::Qwen3Tts)
.with_asset_bundle(assets)
)?;
let audio = model.synthesize(&SynthesisRequest::new("Hello from byte-backed assets."))?;
let wav_bytes = audio.get_wav();
let _ = wav_bytes;
Ok(())
}
The relative paths in the asset bundle should match the model layout documented below, for example config.json, audio_tokenizer/model.safetensors, or voice_embedding/Aurora.pt.
Audio bytes
Generated audio already comes back as AudioSamples, so output does not need filesystem paths either.
audio.get_wav()returns a complete WAV file asVec<u8>for every backend.audio.save_wav()is a convenience helper on top of the same byte encoder.
Audio cleanup
use any_tts::{AudioSamples, DenoiseOptions};
use std::io::Cursor;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let input = std::fs::read("speech-with-music.mp3")?;
let cleaned = AudioSamples::denoise_audio_stream(
Cursor::new(input),
DenoiseOptions::default(),
)?;
cleaned.save_wav("speech-cleaned.wav")?;
Ok(())
}
The denoiser auto-detects WAV and MP3 input streams and applies a speech-band filter plus a short-time spectral gate. It is useful for attenuating steady background noise and background music, but it is not a full voice-isolation or source-separation model.
File resolution flow
any-tts resolves model assets in four tiers, in this order:
- Explicit files you set on
TtsConfigwith methods likewith_config_file()orwith_weight_file(). - Auto-discovery from
with_asset_bundle()orwith_asset_bytes()using model-relative paths. - Auto-discovery from
with_model_path()using the expected filenames for that backend. - Hugging Face fallback through the
downloadfeature.
That means you can mix strategies. A service with its own artifact cache can hand over a few exact files and let the crate discover or download the rest.
Model asset layouts
You can inspect the documented manifest programmatically through ModelType::asset_requirements(). The expected relative paths are:
| Model | Required asset patterns | Optional asset patterns |
|---|---|---|
| Kokoro | config.json, model.safetensors or *.pth | voices/*.pt |
| OmniVoice | config.json, tokenizer.json, model.safetensors or model-*-of-*.safetensors, audio_tokenizer/config.json, audio_tokenizer/model.safetensors or audio_tokenizer/model-*-of-*.safetensors | generation_config.json |
| Qwen3-TTS | config.json, tokenizer.json, model.safetensors or model-*-of-*.safetensors, speech_tokenizer/model.safetensors or speech_tokenizer/model-*-of-*.safetensors | speech_tokenizer/config.json, generation_config.json |
| VibeVoice | config.json, tokenizer.json, model.safetensors or model-*-of-*.safetensors | preprocessor_config.json, generation_config.json |
| VibeVoice Realtime | config.json, tokenizer.json, model.safetensors | preprocessor_config.json, voices/*.pt |
| Voxtral | params.json, tekken.json, consolidated.safetensors, voice_embedding/*.pt | none |
Using these exact relative paths makes the byte-based API foolproof because the same names are what with_model_path() auto-discovery expects on disk.
Request controls
SynthesisRequest keeps the per-call control surface stable across models.
| Field | Purpose | Notes |
|---|---|---|
text | Input text to synthesize | Required for every backend. |
language | Language tag or model-specific language name | Supports ISO tags in several backends and auto where available. |
voice | Named speaker or preset voice | Works for Kokoro, Qwen3 CustomVoice, VibeVoice Realtime, and Voxtral. OmniVoice rejects named voices, and full VibeVoice expects reference_audio instead. |
instruct | Natural-language style control | Most useful on OmniVoice and Qwen3. |
max_tokens | Upper bound on generated codec/audio tokens | Helpful for latency testing and smoke tests. |
temperature | Sampling temperature | Supported where the backend uses it. |
speed | Speaking-rate multiplier | Kokoro only; finite values from 0.1 through 5.0, default 1.0. |
cfg_scale | Classifier-free guidance scale | Used by OmniVoice and other backends that expose CFG-like control. |
reference_audio | Reference clip for voice cloning or prompt conditioning | Used by backends such as VibeVoice when conditioning from speech; unsupported backends return an explicit error. |
voice_embedding | Precomputed embedding payload | Currently reusable with backends that accept embeddings directly. |
Kokoro callers that previously used with_temperature() to change speaking
rate should switch to with_speed(). Temperature no longer changes Kokoro's
duration prediction. Other backends explicitly reject speed requests.
Incremental audio
TtsModel::synthesize_stream() delivers consecutive PCM chunks through a
synchronous callback. Kokoro splits long inputs at phoneme-counted sentence,
clause or word boundaries, keeping each chunk within the encoder context.
VibeVoice Realtime emits audio as speech latents are generated using a stateful
causal decoder. synthesize() collects the same chunks into one AudioSamples.
use any_tts::{load_model, ModelType, SynthesisRequest, TtsConfig};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let model = load_model(
TtsConfig::new(ModelType::Kokoro).with_model_path("./models/Kokoro-82M")
)?;
let request = SynthesisRequest::new("Your text here.").with_speed(1.1);
model.synthesize_stream(&request, &mut |chunk| {
// Send chunk.samples to your playback device or network stream here.
println!("{} samples at {} Hz", chunk.samples.len(), chunk.sample_rate);
Ok(())
})?;
Ok(())
}
The callback provides backpressure; returning an error stops generation before
the next chunk. Delivered chunks contain no repeated overlap. Check
supports_streaming() before relying on early output: other backends and
noncausal Realtime codec configurations deliver a complete buffered chunk.
Realtime's max_tokens limits newly generated speech tokens; text conditioning
and cached prompts consume context capacity but do not consume this budget.
Measuring latency
Use a release build and local model assets:
cargo run --release --example benchmark_tts -- \
--model kokoro --model-path ./models/Kokoro-82M --device cpu --iterations 5
The JSON report records model loading, the first synthesis, warm median/p95
latency, time to first audio, audio duration and real-time factor. For Kokoro it
also measures cold and warm phonemization separately; this initializes the G2P
dictionaries before the synthesis measurements. Add --phonemizer-only to
benchmark text processing using just the model's config.json. Use --text,
--language, --voice, --temperature, --speed, and --max-tokens to hold the workload
constant. Compare short and long utterances and listen to generated audio when
evaluating performance changes.
Applications can move dictionary initialization out of their first request with
any_tts::models::kokoro::phonemizer::prewarm("en")? (or "en-gb" / "ja").
Examples in this repo
These are the example entry points that match the current public crate surface:
cargo run --example generate_kokoro --release
cargo run --example generate_qwen3_tts --release
cargo run --example generate_vibevoice --release --no-default-features --features vibevoice,download,metal
cargo run --example generate_vibevoice_realtime --release --no-default-features --features vibevoice,download,metal
cargo run --example generate_voxtral --release
cargo run --example generate_omnivoice --release --no-default-features --features omnivoice,download,metal
cargo run --example generate_comparison_suite --release --features metal -- --runtime all
cargo run --example benchmark_omnivoice --release --no-default-features --features omnivoice,download,metal -- --warmup 1 --iterations 3
Outputs are written under output/ by the example binaries.
generate_vibevoice keeps writing the main raw render to the configured
VIBEVOICE_OUTPUT path and also writes *_base.wav,
*_denoised_default.wav, and *_denoised_aggressive.wav under
output/denoise/ by default. You can override that folder with
VIBEVOICE_DENOISE_DIR.
generate_vibevoice_realtime targets ModelType::VibeVoiceRealtime and expects cached prompt presets under models/VibeVoice-Realtime-0.5B/voices/ by default. Use VIBEVOICE_REALTIME_MODEL_PATH, VIBEVOICE_REALTIME_VOICES_DIR, VIBEVOICE_REALTIME_VOICE, VIBEVOICE_REALTIME_DEVICE, and VIBEVOICE_REALTIME_OUTPUT to override the defaults.
generate_comparison_suite writes a shared English and German comparison set under output/model_comparison/cpu/ and output/model_comparison/metal/, plus report.json files with per-model load time, per-sample synthesis time, audio duration, and realtime factor. It loads one model at a time so the full suite can run sequentially on tighter memory budgets.
Model guide
Kokoro-82M
What it is
Kokoro is the compact option in this repo: an 82M-parameter StyleTTS2 plus ISTFTNet stack with Apache-licensed weights. In practice, it is the backend you reach for when you want a fast local model, simple deployment, and a much smaller download than the larger multilingual checkpoints.
What works in any-tts today
- Native Rust inference.
- Default output at 24 kHz.
- Named preset voices discovered from the
voices/directory. - Language tags exposed by the current backend:
en,en-gb,ja,zh,ko,fr,de,it,pt,es,hi. - Long-input chunking and callback streaming within the model's context limit.
- Optional voice-cloning support only when a checkpoint includes style-encoder weights.
Pros
- Small enough to be the practical local-first choice.
- Apache-2.0 model license makes deployment straightforward.
- Good fit for desktop apps, tools, and low-latency local generation.
- Simple model layout relative to the larger codebook-based stacks.
Cons
- Non-English pronunciation uses a rule frontend whose parity tuning is ongoing.
- The common open release is mostly about preset voice packs, not raw zero-shot cloning.
- Less expressive control than the bigger instruct-heavy model families.
License
- Upstream model weights: Apache-2.0.
- Crate code using the model:
MIT OR Apache-2.0.
OmniVoice
What it is
OmniVoice is the ambition play in this repo. Upstream, it is a diffusion language model TTS stack aimed at omnilingual zero-shot speech generation with voice design and massive language coverage.
What works in any-tts today
- Native Candle backend.
language,instruct,cfg_scale, andmax_tokensrequest controls.- Automatic runtime preference selection for CPU, CUDA, or Metal.
- Repo-exposed language set:
auto,en,zh,ja,ko,de,fr,es,pt,ru,it.
What does not work yet in the Rust backend
- Named voices.
- Reference-audio voice cloning.
- Reusable voice embeddings.
The code returns explicit errors for those cases instead of silently falling back to Python.
Pros
- Strong upstream story for language coverage.
- Good fit for instruction-driven voice design.
- Benchmark helper in this repo already makes backend comparisons easy.
- Apache-2.0 model license.
Cons
- The current Rust implementation exposes less than the upstream model card promises.
- If your main requirement is zero-shot cloning from reference audio, this backend is not there yet in this crate.
- Heavier than Kokoro and less turnkey than the small local-first path.
License
- Upstream model weights: Apache-2.0.
- Crate code using the model:
MIT OR Apache-2.0.
Qwen3-TTS
What it is
Qwen3-TTS is the control-heavy multilingual option. It uses a discrete multi-codebook language model plus a speech-tokenizer decoder and is designed for named speakers, instruction-following, and multiple TTS operating modes.
What works in any-tts today
- Native Rust backend.
- Default path points to
Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice. - Named speaker generation for CustomVoice checkpoints.
- VoiceDesign checkpoints also work when selected through
with_hf_model_id()or local files. - 24 kHz output with the extra speech-tokenizer weights resolved alongside the main model.
- Repo-level language support tracks the current checkpoint config and includes
auto.
Example: switch from CustomVoice to VoiceDesign
use any_tts::{load_model, ModelType, SynthesisRequest, TtsConfig};
let model = load_model(
TtsConfig::new(ModelType::Qwen3Tts)
.with_hf_model_id("Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign")
)?;
let audio = model.synthesize(
&SynthesisRequest::new("This voice should sound sharp, precise, and quietly confident.")
.with_language("English")
.with_instruct("Female presenter voice, low warmth, clear diction, subtle authority."),
)?;
Pros
- Best overall control surface in the current public crate API.
- Strong multilingual coverage: Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, and Italian upstream.
- Named speakers are easy to use from a single request builder.
- VoiceDesign gives you a second mode without changing the main crate API.
Cons
- Large download and memory footprint compared with Kokoro.
- Requires the separate speech-tokenizer decoder assets in addition to the main weights.
- Upstream Base-model voice cloning exists, but reference-audio cloning is not implemented in this crate yet.
License
- Upstream model weights: Apache-2.0.
- Crate code using the model:
MIT OR Apache-2.0.
VibeVoice-1.5B
What it is
VibeVoice-1.5B is the long-form diffusion backend in this crate. It is the VibeVoice option to choose when you want native Rust inference with reference-audio-conditioned prompting instead of named preset voices.
What works in any-tts today
- Native Rust backend.
reference_audio,language,instruct,cfg_scale,max_tokens, andtemperaturerequest controls.- 24 kHz output with automatic runtime selection across CPU, CUDA, or Metal.
- Public
ModelType::VibeVoiceloading through the sharedvibevoicefeature.
What does not work yet in the Rust backend
- Named voice presets.
- Pre-extracted reusable voice embeddings.
- Low-latency streaming generation; the current path is still optimized for correctness and parity work.
Pros
- Best fit in this repo for long-form, reference-audio-conditioned synthesis.
- Native Rust inference for a model family that is often driven from Python examples upstream.
- Shares the same trait-based API as the smaller and faster backends.
Cons
- Heavier and slower than Kokoro or VibeVoice Realtime.
- Still an early backend compared with the simpler local-first paths.
- Not the right choice if your application needs preset voice names or fast startup latency.
License
- Upstream model weights: MIT.
- Crate code using the model:
MIT OR Apache-2.0.
VibeVoice-Realtime-0.5B
What it is
VibeVoice Realtime is the smaller low-latency VibeVoice variant. In this crate it is exposed as ModelType::VibeVoiceRealtime and centers on cached-prompt voice presets rather than reference-audio cloning.
What works in any-tts today
- Native Rust backend.
- Cached-prompt voice presets discovered from
voices/*.pt. - Public example coverage through
generate_vibevoice_realtime. - 24 kHz output with the same Candle runtime selection flow used by the rest of the crate.
- Voice selection through
SynthesisRequest::with_voice()when matching preset files are present. - Incremental PCM output through
synthesize_stream()with causal codec checkpoints.
What does not work yet in the Rust backend
- Reference-audio input.
- Pre-extracted voice embeddings.
- Arbitrary speaker cloning without upstream preset cache files.
Pros
- Best fit here for low-latency preset-voice generation.
- Smaller checkpoint than the full VibeVoice-1.5B model.
- Good developer path for apps that reuse approved voices and want predictable startup behavior.
Cons
- Depends on
voices/*.ptpreset caches and fails explicitly if they are missing. - The upstream model card is English-first and research-oriented.
- Less flexible than full VibeVoice when you need reference-audio conditioning or multi-speaker behavior.
License
- Upstream model weights: MIT.
- Crate code using the model:
MIT OR Apache-2.0.
Voxtral-4B-TTS-2603
What it is
Voxtral is the biggest public backend in the repo and the most obviously voice-agent-oriented. It pairs a language model with acoustic generation and preset voice embeddings, and the published checkpoint is tuned for multilingual, low-latency TTS deployment scenarios.
What works in any-tts today
- Native Rust backend.
- Preset voice selection from the checkpoint's
voice_embedding/assets. - Optional direct
voice_embeddingreuse when you already have a compatible embedding. - Repo-exposed languages:
en,fr,es,de,it,pt,nl,ar,hi. - Default sample rate is resolved from the model config and outputs at 24 kHz with the published checkpoint.
Pros
- Best fit here for production-style voice-agent workloads.
- Upstream model card emphasizes streaming and low time-to-first-audio.
- Comes with preset voices and a clear multilingual story.
Cons
- The open checkpoint does not ship reference-audio encoder weights, so raw voice cloning is unavailable.
- This is the heaviest public backend in the crate.
- The published model license is
CC BY-NC 4.0, so commercial deployment needs extra care or a different model choice.
License
- Upstream model weights: CC BY-NC 4.0.
- Crate code using the model:
MIT OR Apache-2.0.
Usage patterns that hold across models
Local directory loading
use any_tts::{load_model, ModelType, TtsConfig};
let model = load_model(
TtsConfig::new(ModelType::Kokoro)
.with_model_path("./models/Kokoro-82M")
)?;
Explicit file-path loading
use any_tts::{load_model, ModelType, TtsConfig};
let model = load_model(
TtsConfig::new(ModelType::Qwen3Tts)
.with_config_file("/cache/config.json")
.with_tokenizer_file("/cache/tokenizer.json")
.with_weight_file("/cache/model-00001-of-00002.safetensors")
.with_weight_file("/cache/model-00002-of-00002.safetensors")
.with_speech_tokenizer_weight_file("/cache/speech-tokenizer.safetensors")
)?;
Device and dtype selection
use any_tts::config::DType;
use any_tts::{load_model, DeviceSelection, ModelType, TtsConfig};
let model = load_model(
TtsConfig::new(ModelType::OmniVoice)
.with_device(DeviceSelection::Metal(0))
.with_dtype(DType::F16)
)?;
Repo health files
This repo now includes the standard GitHub community files you would expect for an active project:
- Contributing
- Code of Conduct
- Security Policy
- Support Guide
- Issue templates under
.github/ISSUE_TEMPLATE/ - A pull request template at
.github/PULL_REQUEST_TEMPLATE.md
Contributing
If you are adding a backend, model variant, or new loading flow, keep the public story honest: unsupported features should fail explicitly, examples should match exported API, and docs should separate experimental repo work from supported top-level surfaces.
The short version is in CONTRIBUTING.md.
Security
Model weights, runtime backends, and artifact loading all change the risk profile of TTS systems. Please read SECURITY.md before disclosing a vulnerability publicly.
License
The crate metadata declares MIT OR Apache-2.0 for this repository's Rust code. That does not supersede the terms attached to any model weights you download and run through it.
Status
This repo now has a clear public shape: six native backends, trait-based loading, byte-first asset support, and example coverage for local, multilingual, long-form, preset-voice, and realtime TTS workflows. The right way to think about it is not "a single-model wrapper" but "a Rust TTS platform layer that lets one application target multiple open model ecosystems without hiding their differences."
Compatibility
- Runs on
- CUDA, Metal
What shows it
- CUDA: any-tts feature cuda
- Metal: any-tts feature metal
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0 OR 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.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
A Rust TTS library with Candle backends and runtime adapters for modern open TTS models |
3,404 downloads over 30 days | 2 | 23 | 0.2.0 | CUDA, Metal | No native code found | Apache-2.0 OR MIT |
|
rustfst Listed
Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs). |
24,531 downloads over 30 days | 10 | 192 | 1.3.1 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
piper-rs Listed
Use piper TTS models in Rust |
7,898 downloads over 30 days | 9 | 67 | 0.2.0 | GPU support unknown | Binds native code: espeak-rs-sys, sonic-rs-sys, ort-sys. Build uses a native toolchain: bindgen, cc | MIT |
|
Voice for the Linux desktop: dictation, read-aloud (TTS), and voice-driven LLM commands, with Groq, OpenAI, Deepgram, and local Whisper backends |
61 binary downloads per release | Not applicable | 149 | 0.2.0 | CUDA, Vulkan | Binds native code: alsa-sys, mac-notification-sys, wayland-sys (feature overlay), whisper-rs-sys (feature local-whisper) | MIT |
|
gradbot Listed
Open source framework to vibecode and prototype voice agents with Gradium APIs |
31 downloads over 30 days | 3 | 152 | 0.6.4 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
qwen3-asr-rs Listed
Pure Rust implementation of Qwen3 ASR (Automatic Speech Recognition) with libtorch and MLX backends |
21 downloads over 30 days | 0 | 254 | 0.2.0 | CUDA | Binds native code: torch-sys (feature tch-backend). Build uses a native toolchain: cmake | Apache-2.0 |
|
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 2 active dependents and 2 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 23 stars, 6 forks and 2 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
What else the check found
- The last activity is on 9 Oct 2026, 31 days ago. The rules expect an update within 365 days. Dormancy rule
Check notes
- the latest release was packaged from a dirty working tree
Exact rules: Listed, Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.2.0 base 80, raised to the 365-day floor: E = 365 daysdormancy: last activity 2026-10-09, 31 days ago, E = 365: activefeatured: not featured: active_users 2 < 11 and new_adopters 2 < 9 and repository route stars 23 (needs 4539), forks 6 (needs 434), contributors 2 (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
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption2 active dependents, 2 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 2 | crates.io database dump | Yes | |
| New dependents (365 days) | 2 | crates.io database dump | Yes | |
| Peak active dependents | 2 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 31 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-10-09 | GitHub repository | Yes | |
| Latest release | 2026-10-09 | crates.io database dump | Yes | |
| First release | 2026-04-08 | crates.io database dump | Yes | |
| Latest version | 0.2.0 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 183 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 0 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution5 releases, 3,404 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 5 | crates.io database dump | Yes | |
| Downloads over 30 days | 3404 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository23 stars, 6 forks, 2 contributors, 33 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 23 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 6 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 2 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 33 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 OR MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | CUDA, Metal | crates.io database dump | No | |
| What shows each backend | CUDA: any-tts feature cuda; Metal: any-tts feature metal | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 2 | crates.io database dump | No |
Corrections and review history
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.