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.

Checked · Sources

Downloads
642
Dependents
2
Stars
2
Forks
0
Contributors
2
Commits
133
Latest release
0.9.1 ·

About

From the project README ·

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 wgpu feature.
  • Multichannel AAC and HE-AAC: decode refuses them.
  • Opus past two channels: decode refuses it.
  • Other codecs: voxr refuses them. voxr-narrate can fall back to an ffmpeg on PATH for 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

CrateWhat it doesFeatures
voxrAudio files, DSP, G2P, voices, and speech pipelinesvoxr features
voxr-narrateTurns a narration script into a checked voiceovervoxr-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

TaskEngineFeatureBackend
Speech synthesisKokoro, VITS (MMS-TTS)kokoro, vitsCPU, or CUDA with cuda
Voice cloningVoxCPM2voxcpmCPU, or CUDA with cuda
Transcription with word timingsWhisperwhisperCPU, or CUDA with cuda
Audio-text scoringCLAPclapCPU, or CUDA with cuda
Voice activity detectionSilero VADvadCPU. No test or example in this repository runs it on CUDA
Audio codecNeuCodecneucodecCPU, 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:

  1. Download a Whisper checkpoint in Hugging Face layout, such as openai/whisper-base. voxr does not download it.
  2. Check that its generation_config.json lists alignment_heads.
  3. 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.

FlagEffect
--out DIRWrites NAME.words.json files to DIR
--language xxSets 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
FeatureAdds
decodeCompressed-audio decode. See Decode formats
spacy-tokenizerThe spaCy en_core_web_sm 3.8.0 tokenizer, with its patterns and tables embedded
spacy-taggerThe en_core_web_sm tagger. Implies spacy-tokenizer
misakimisaki English G2P with the US and GB lexicons embedded. Implies spacy-tagger and f16
ttsTtsEngine, TtsBundle and Voice, the engine-agnostic synthesis surface
kokoroKokoro synthesis. Implies tts and misaki
vitsVITS (MMS-TTS) synthesis, with uroman romanization. Implies tts
voxcpmVoxCPM2 voice cloning. Implies tts and decode
whisperWhisper transcription with word timings. Implies decode
vadSilero VAD segmentation
clapCLAP audio-text scoring, which ranks sounds in the sound review
neucodecThe NeuCodec model, for its probing examples
corpusSpeech-corpus preparation. Implies whisper, vad, neucodec and decode
f16Half-precision tensors
cudaThe CUDA backend
Decode formats
CodecContainersLimit
WAV, FLAC, MP3Their own filesNone
AAC-LCMP4, M4A, MOVMultichannel AAC and HE-AAC are refused
ALACMP4, M4A, MOVNone
OpusOgg, WebM, MKVPast two channels is refused
VorbisOgg, WebM, MKVNone

Trims and downmix match ffmpeg. MP4 edit lists and Matroska codec delay come from containr.

voxr-narrate features
FeatureAdds
whisperWhisper word timings, WhisperHearing, and NarrationRuns over loaded engines. Implies voxr/whisper
stretchstretch_track and resample_48k over voxr's ffmpeg-matched atempo and resampler
kokoroKokoroSpeech, Kokoro as a speech engine. Implies voxr/kokoro
vitsVitsSpeech, VITS as a speech engine. Implies voxr/vits
voxcpmVoxcpmSpeech, VoxCPM2 as a speech engine. Implies voxr/voxcpm
cudaThe 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.

FilesWhere to get themWhere to put them
spaCy tagger, for Kokorofs90/kokoro-g2pg2p/tagger/ under the Kokoro model directory
Out-of-vocabulary G2P model, for Kokorofs90/kokoro-g2pg2p/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

NeedValue
ToolkitCUDA 12.8 or newer, with nvcc on PATH
GPUCompute capability 7.5 (Turing) or newer
  • CUDA binaries: a build targets the GPUs on the build host. Set NUMR_CUDA_ARCH=all for 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/.

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.

voxr beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
voxr This page 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

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
whisrs App Listed

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 days
  • dormancy: last activity 2026-11-06, 3 days ago, E = 365: active
  • new: new: first release 2026-10-09 is under 180 days old
Crates2 crates

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
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents0crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 3 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-11-06GitHub repositoryYes
Latest release2026-11-06crates.io database dumpYes
First release2026-10-09crates.io database dumpYes
Latest version0.9.1crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days2GitHub 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
Distribution11 releases, 642 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases11crates.io database dumpYes
Downloads over 30 days642crates.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
Repository2 stars, 0 forks, 2 contributors, 133 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars2GitHub repositoryYes — one part of the repository route
GitHub forks0GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account2GitHub contributorsYes — one part of the repository route
Commits on the default branch133GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseApache-2.0crates.io database dumpNo
Runs on, from listed crates and their direct dependenciesCUDAcrates.io database dumpNo
What shows each backendCUDA: voxr feature cuda, voxr-narrate feature cudacrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.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 directly2crates.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.