voxr
Library 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.
- Downloads
- 642
- Dependents
- 2
- Stars
- 2
- Forks
- 0
- Contributors
- 2
- Commits
- 133
- Latest release
- 0.9.1 ·
About
Audio and speech in Rust, on boostr models.
WAV and compressed-audio decode, signal processing, grapheme-to-phoneme (G2P), and speech synthesis, transcription, and voice-activity pipelines. Model weights load at run time from a directory, and none are compiled in.
Docs · Crate · Crates · What works · Example · Models · Contributing
voxr is an audio and speech library for Rust: text-to-speech, speech-to-text, voice-activity detection, and audio decode and DSP. It is a Cargo workspace on top of boostr models and numr tensors. The model networks and their kernels live in boostr.
No ffmpeg, no Python
The work happens in Rust. voxr links no ffmpeg, no libav and no Python, and a library call starts no process.
- Decode: WAV, FLAC, MP3, AAC-LC, ALAC, Opus and Vorbis decode in Rust. Trims and downmix match ffmpeg. See Decode formats.
- Resample and tempo stretch: voxr resamples and stretches tempo in Rust, and its results match ffmpeg's resampler and atempo filter.
- Models: Kokoro, VITS, VoxCPM2, Whisper, CLAP and Silero VAD run on boostr, with no PyTorch.
- G2P: the misaki and spaCy English tokenizer and tagger run in Rust, with their data embedded.
Read the full README
voxr can replace an ffmpeg decode step and a Python speech stack. It does not download model weights.
Not supported yet
- WebGPU: voxr has no
wgpufeature. - Multichannel AAC and HE-AAC: decode refuses them.
- Opus past two channels: decode refuses it.
- Other codecs:
voxrrefuses them.voxr-narratecan fall back to anffmpegonPATHfor a file voxr refuses. Only that fallback runs a process. - VAD on CUDA: no test or example in this repository runs Silero VAD on CUDA.
Crates
| Crate | What it does | Features |
|---|---|---|
voxr | Audio files, DSP, G2P, voices, and speech pipelines | voxr features |
voxr-narrate | Turns a narration script into a checked voiceover | voxr-narrate features |
- voxr-narrate runs the speak and transcribe commands of the motion-video skill.
- voxr provides the sound review of that skill.
What works
| Task | Engine | Feature | Backend |
|---|---|---|---|
| Speech synthesis | Kokoro, VITS (MMS-TTS) | kokoro, vits | CPU, or CUDA with cuda |
| Voice cloning | VoxCPM2 | voxcpm | CPU, or CUDA with cuda |
| Transcription with word timings | Whisper | whisper | CPU, or CUDA with cuda |
| Audio-text scoring | CLAP | clap | CPU, or CUDA with cuda |
| Voice activity detection | Silero VAD | vad | CPU. No test or example in this repository runs it on CUDA |
| Audio codec | NeuCodec | neucodec | CPU, or CUDA in the noise_probe_decode example |
- Rust: 1.95 or newer.
- CUDA: needs the setup in CUDA.
- Abbreviations: G2P is grapheme-to-phoneme, TTS is text-to-speech, ASR is automatic speech recognition, and VAD is voice activity detection.
Quick Start
Add the crate to your project, with the features you need:
cargo add voxr --features decode
Decode a file to 16 kHz mono and write it as a 16-bit WAV file:
use std::path::Path;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let samples = voxr::decode_audio_file_mono_at(Path::new("in.m4a"), 16_000)?;
let wav = voxr::encode_wav_pcm16(&samples, 16_000)?;
std::fs::write("out.wav", wav)?;
Ok(())
}
To try transcription from a checkout of this repository:
- Download a Whisper checkpoint in Hugging Face layout, such as
openai/whisper-base. voxr does not download it. - Check that its
generation_config.jsonlistsalignment_heads. - Run the example:
cargo run --release -p voxr-narrate --features whisper --example transcribe_take -- \
--model WHISPER_DIR AUDIO.wav
The example writes the words of each input to standard output.
| Flag | Effect |
|---|---|
--out DIR | Writes NAME.words.json files to DIR |
--language xx | Sets the language. The default is en |
Features
Every feature is off by default. A build with no features includes:
- WAV read and write
- Resamplers and tempo stretch
- Enhancement and single-sound metrics
- Sound review and pitch tracking
- ASR error rates
- TTS quality statistics that need no model
voxr features
| Feature | Adds |
|---|---|
decode | Compressed-audio decode. See Decode formats |
spacy-tokenizer | The spaCy en_core_web_sm 3.8.0 tokenizer, with its patterns and tables embedded |
spacy-tagger | The en_core_web_sm tagger. Implies spacy-tokenizer |
misaki | misaki English G2P with the US and GB lexicons embedded. Implies spacy-tagger and f16 |
tts | TtsEngine, TtsBundle and Voice, the engine-agnostic synthesis surface |
kokoro | Kokoro synthesis. Implies tts and misaki |
vits | VITS (MMS-TTS) synthesis, with uroman romanization. Implies tts |
voxcpm | VoxCPM2 voice cloning. Implies tts and decode |
whisper | Whisper transcription with word timings. Implies decode |
vad | Silero VAD segmentation |
clap | CLAP audio-text scoring, which ranks sounds in the sound review |
neucodec | The NeuCodec model, for its probing examples |
corpus | Speech-corpus preparation. Implies whisper, vad, neucodec and decode |
f16 | Half-precision tensors |
cuda | The CUDA backend |
Decode formats
| Codec | Containers | Limit |
|---|---|---|
| WAV, FLAC, MP3 | Their own files | None |
| AAC-LC | MP4, M4A, MOV | Multichannel AAC and HE-AAC are refused |
| ALAC | MP4, M4A, MOV | None |
| Opus | Ogg, WebM, MKV | Past two channels is refused |
| Vorbis | Ogg, WebM, MKV | None |
Trims and downmix match ffmpeg. MP4 edit lists and Matroska codec delay come from containr.
voxr-narrate features
| Feature | Adds |
|---|---|
whisper | Whisper word timings, WhisperHearing, and NarrationRuns over loaded engines. Implies voxr/whisper |
stretch | stretch_track and resample_48k over voxr's ffmpeg-matched atempo and resampler |
kokoro | KokoroSpeech, Kokoro as a speech engine. Implies voxr/kokoro |
vits | VitsSpeech, VITS as a speech engine. Implies voxr/vits |
voxcpm | VoxcpmSpeech, VoxCPM2 as a speech engine. Implies voxr/voxcpm |
cuda | The CUDA runtime for Whisper, Kokoro, VITS and VoxCPM2 |
Models
No model weights are compiled in or shipped, and voxr fetches nothing over the network. Download each checkpoint, for example from Hugging Face, and pass its directory at run time.
| Files | Where to get them | Where to put them |
|---|---|---|
| spaCy tagger, for Kokoro | fs90/kokoro-g2p | g2p/tagger/ under the Kokoro model directory |
| Out-of-vocabulary G2P model, for Kokoro | fs90/kokoro-g2p | g2p/oov/ under the Kokoro model directory |
The embedded data is text-processing data only: the misaki lexicons behind misaki, and the spaCy tokenizer tables behind spacy-tokenizer.
CUDA
| Need | Value |
|---|---|
| Toolkit | CUDA 12.8 or newer, with nvcc on PATH |
| GPU | Compute capability 7.5 (Turing) or newer |
- CUDA binaries: a build targets the GPUs on the build host. Set
NUMR_CUDA_ARCH=allfor a binary that runs on another machine. - Every value: numr's docs/backends.md lists them.
Contributing
Contributions are welcome. See CONTRIBUTING.md for conventions and checks.
Questions and design discussion happen on Discord.
License
Licensed under Apache-2.0. See LICENSE.
Code ported from other projects and data voxr redistributes are listed with their licenses in crates/voxr/LICENSE-OTHERS and crates/voxr-narrate/LICENSE-OTHERS. Each embedded data set carries its own LICENSE and NOTICE beside it under crates/voxr/assets/.
Compatibility
- Runs on
- CUDA
What shows it
- CUDA: voxr feature cuda, voxr-narrate feature cuda
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0
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.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
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 |
|
Voice Activity Detector using the Silero VAD model. |
36,149 downloads over 30 days | 11 | 64 | 0.2.1 | GPU support unknown | Binds native code: ort-sys | MIT |
|
mel_spec Listed
Mel spectrograms aligned to the results from the whisper.cpp, pytorch and librosa reference implementations and suited to streaming audio. |
26,437 downloads over 30 days | 6 | 91 | 0.5.0 | CUDA, WebGPU | Binds native code: ort-sys (feature ort-tensor). Build uses a native toolchain: cc | MIT |
|
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 |
|
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 |
Why NewIts first release on 9 Oct 2026 is under 180 days old.
The check tests the Featured gates once the first release passes this age limit.
What else the check found
- The last activity is on 6 Nov 2026, 3 days ago. The rules expect an update within 365 days. Dormancy rule
Exact rules: New. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.9.1 base 300, raised to the 365-day floor: E = 365 daysdormancy: last activity 2026-11-06, 3 days ago, E = 365: activenew: new: first release 2026-10-09 is under 180 days old
Crates2 crates
- voxr Primary
- voxr-narrate
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: written for the catalogue
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 0 | crates.io database dump | Yes | |
| New dependents (365 days) | 0 | crates.io database dump | Yes | |
| Peak active dependents | 0 | 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: 3 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-11-06 | GitHub repository | Yes | |
| Latest release | 2026-11-06 | crates.io database dump | Yes | |
| First release | 2026-10-09 | crates.io database dump | Yes | |
| Latest version | 0.9.1 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 0 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 2 | 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 |
Distribution11 releases, 642 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 11 | crates.io database dump | Yes | |
| Downloads over 30 days | 642 | 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 |
Repository2 stars, 0 forks, 2 contributors, 133 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 2 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 0 | 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 | 133 | 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 | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | CUDA | crates.io database dump | No | |
| What shows each backend | CUDA: voxr feature cuda, voxr-narrate feature cuda | 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.