A speech engine that is not tied to one model

vox runs Qwen3-TTS, F5-TTS, Kokoro-82M and CosyVoice2 from a single .tmod file: on the CPU, on a GPU through Vulkan and right in the browser through WebGPU. One seed, one sound.

  • Use it as a library (C ABI), a CLI, a Python package or a single vox.js script
  • On the test model, F5-TTS differs from the official f5_tts by less than 1e-6 of the signal amplitude
  • The noise does not depend on the thread count, the GPU or the chunk size
checking WebGPU…
The spectrogram of a voice computed on your GPU will appear here
The test uses a tiny 2 MB model with random weights: the sound will be noise, but it exercises the whole path.

A model is a file, the engine is always the same

Weights live in one .tmod, a voice in a .tvoice. A new model plugs in as a “family” on top of the same runtime, so the resource planner, streaming and tests are shared.

Resources under control

Device choice, RAM and VRAM limits, thread count and run mode. You can see the placement plan without loading anything: vox plan.

Seamless streaming

Text goes in piece by piece and audio comes out as it is ready. F5-TTS chunks are joined with a 0.15 s crossfade, as in the official inference.

Checked against a reference

Every family is compared with the official package on a test model with random weights. What is not verified is stated in the README and further down this page.

Which models already work

One engine, different families. More models are added one per iteration, each with its own tests.

ModelCPUVulkanBrowser (WebGPU)What is verified
Qwen3-TTS 12HzBase, CustomVoice, VoiceDesign; 0.6B and 1.7ByesyesyesThe core is compared with the official qwen_tts, including on a real 1.7B Base; RTX 3050 timings are in the README. In the browser: loading from an HF link and synthesis are compared with the core on a tiny model; real weights and a real GPU have not been measured. Base voice cloning from a recording runs in the browser (compared with the core on a tiny model)
F5-TTSDiT + flow matching + Vocos, cloning from a sampleyesyes, whole graphyesCompared with f5_tts and vocos on a test model, in the browser too; the Vulkan graph (DiT and Vocos) too, to 4e-9 on lavapipe.. On real weights (hotstone228/F5-TTS-Russian, 4 steps) RTF 0.76 on an RTX 5050, 1.39 on an RTX 3050
Kokoro-82MStyleTTS2 + iSTFTNet; named voices and blends; English G2P built inyesnot yetnot yetEvery stage is compared with the official kokoro to ~1e-6; end-to-end audio has the same length and a log-mel difference of 0.16–0.71 dB. The built-in G2P matches misaki on 92% of words; with the Python misaki the pieces are exactly those of KPipeline. On real Kokoro-82M weights: the same length as the official, mean |Δ log-mel| 0.125, whisper hears the same words
CosyVoice2-0.5BQwen2 LM over speech tokens + flow matching + HiFT; cloning, instructions, laughter / breath tagsyesLLM + flow (0.18)not yetEvery stage (mel, fbank, CAM++, Whisper mel, S3 tokens, LLM log-probs, flow, HiFT) matches the official CosyVoice code to 1e-7–1e-4 on a tiny model; whole utterances through the engine to 1.4e-5; text pieces identical to text_normalize. Real weights checked by the author: ASR verbatim (en, zh)
ChatterboxLlama T3 over speech tokens + S3Gen (flow matching + HiFT); English; cloning without a transcript, emotion exaggerationyesT3 + flow (0.18)not yetEvery stage (VoiceEncoder, T3 conditioning, CFG logits of every step, flow, HiFT) matches the official chatterbox-tts to 1e-7–6e-5 on a tiny model; whole utterances through the engine to 1.3e-5 with four sets of options. Real weights checked by the author: ASR verbatim
XTTS, Chatterbox MultilingualqueuedTo be added one model per iteration

From text to sound

All clients go through the same contract. Only the place where the model runs differs.

Converter

Hugging Face weights become a .tmod: f32, f16, bf16, q8 or q4.

  • python -m vox build
  • python -m vox.build_f5
  • python -m vox.build_kokoro

Family

Describes the model stages and knows how to clone a voice. Autoregressive models go through codecs, the rest through the “direct” mode.

Device

The planner places the stages on the hardware.

  • CPU: AVX2, aarch64
  • Vulkan: NVIDIA, AMD, Intel
  • WebGPU: browser (vox.js)

Client

Audio is float32, mono. Take it in one piece or as a stream.

  • C ABI, C++, Rust, Go
  • Python, Node.js
  • HTTP server, browser

How each model runs

Each family is a chain of native stages. Every stage is compared with the official PyTorch code on a tiny model built from the official classes.

Qwen3-TTSautoregressive, word-by-word input
textBPE Qwen2prefillvoice · speaker · instructiontalker1 token / framecode predictor15 passes, 1 dispatchcodec decoderstreaming, 320 ms chunks
F5-TTSflow matching, whole sentences
textsplit like infer_processDiT × NFE2 CFG branches, one GPU command buffer per stepVocoson the GPUiSTFTcrossfade0.15 s
Kokoro-82Mnew in 0.14 · named voices
G2Pbuilt-in misaki portPL-BERTALBERTprosodydurations · F0 · energydecoderAdaINiSTFTNetNSF source, Snake
CosyVoice2new in 0.16 · cloning, instructions
text_normalizegroups of sentencesQwen2 LMspeech tokens, RASConformer×2 → 50 Hzflow matching10 steps, CFGHiFTNSF source, iSTFT
Chatterboxnew in 0.17 · cloning without a transcript
punc_normtokenizer.jsonT3 Llamaspeech tokens, CFGConformer×2 → 50 Hzflow matching10 steps, CFGHiFTNSF source, iSTFT

Performance

Measured by a user on vox 0.14.0 with tools/run_full_check.py: 16-thread CPU, RTX 3050 6 GB and RTX 5050 8 GB. qwentts.cpp ran on the same machine with the same text; WER was 0 for every variant.

Qwen3-TTS 1.7B RTF: vox Vulkan q4 0.42, q8 0.44, bf16 0.59, qwentts.cpp CUDA 0.426; CPU: vox q4 1.35, q8 1.65, bf16 2.61, qwentts.cpp 1.84
Peak RSS, q8: vox Vulkan 0.48 GB vs qwentts.cpp CUDA 2.97 GB; CPU: vox 2.44 GB vs qwentts.cpp 7.14 GB
F5-TTS RTF at 4 steps: CPU 12.5 → 6.71, RTX 3050 35.1 → 1.39, RTX 5050 0.76
Kokoro-82M CPU RTF: vox f32 0.39, bf16 0.35, PyTorch 0.21

0.14.1 speeds up CPU matrix products with many rows, with bit-identical audio: on 2 cores Kokoro went from RTF 0.89 to 0.56. It also adds a faster GPU GEMM and attention for F5; those have only been checked for correctness on a software GPU so far. Run tools/run_full_check.py on your machine to get your numbers.

How to get it

Repository: github.com/dariumi/Vox. License: Apache-2.0. Model weights are not part of the repository: each model has its own license.

Build from source

git clone https://github.com/dariumi/Vox.git
cd Vox
cmake -S . -B build -DVOX_NATIVE=ON
cmake --build build -j

This produces build/vox (the CLI) and build/libvox.so (the library; .dylib and .dll on macOS and Windows). Vulkan turns on by itself if the headers are found.

Python package

pip install vox-tts

Wheels for Linux, Windows and macOS (Vulkan included on Linux and Windows) from PyPI; for Vulkan or other platforms, pip install . in the repository builds the native module (CMake and a compiler are required). Then: import vox. Server: python -m vox serve.

For the browser: one file

<script src="vox.js"></script>

No build step, no dependencies, about 300 KB. Best with WebGPU (otherwise the CPU does the work, several times slower): Chrome and Edge 113+ (Windows, macOS; on Linux WebGPU still needs flags), Firefox 141+ (Windows), Safari 26. The page must be served over HTTPS or from localhost.

The .tmod model file

# Qwen3-TTS
python -m vox build --model ./Qwen3-TTS-12Hz-1.7B-Base \
    --dtype bf16 --quant q8 -o model.q8.tmod

# F5-TTS
python -m vox.build_f5 --ckpt model_1250000.safetensors \
    --vocab vocab.txt --vocos ./vocos-mel-24khz \
    --dtype bf16 -o f5.bf16.tmod

For the browser use bf16 or q8: an F5 file in f32 is over 1 GB.

Using it from different languages

All bindings go through the C ABI. The examples in the repository are checked automatically: on the test model each one produces exactly the same samples as vox say with the same seed.

vox say / vox voice create
# a voice from a recording (best: 24 kHz WAV, 5-15 seconds of clean speech)
vox voice create ref.wav --model model.tmod --text "The text spoken in the recording" -o me.tvoice

# synthesize to a file
vox say "Hello! This is a check." --model model.tmod --voice me.tvoice -o out.wav

# stream into a player
vox say --stdin --stream --model model.tmod --voice me.tvoice | ffplay -f f32le -ar 24000 -i -

# F5-TTS: the parameters are named as in the official code
vox say "Hello!" --model f5.tmod --voice me.tvoice --nfe 16 --cfg 2 --sway -1 --speed 1 -o out.wav

# Kokoro-82M: a named voice or a blend, no recording needed
vox say "Hello!" --model kokoro.tmod --speaker af_heart,bf_emma -o out.wav
vox phonemize --model kokoro.tmod "It's 10 o'clock."
Device list and the placement plan without loading weights: vox devices, vox plan --model model.tmod.

Demo: F5-TTS and Qwen3-TTS on WebGPU

Everything is computed in your browser: on the GPU (WebGPU), or on the CPU if there is none. Nothing is sent to a server: the model and the voice recording stay on the page.

1. Model not loaded

2. Voice none

3. Text

no model loaded
The spectrogram will appear after the first synthesis

Load a model to start.

Speed depends on the GPU and the number of steps. F5-TTS is heavy: on weak integrated GPUs choose “Fast”. The author has no measurements on real GPUs yet.

Live input: type and it speaks

Duplex streaming. Text goes in on the fly and audio comes out right away while the model keeps reading. Models differ: Qwen3-TTS reads word by word and starts speaking mid-sentence, F5-TTS speaks whole chunks (per sentence or after a typing pause). The engine picks how to feed the chosen model. You need a model loaded above and a voice.

Input stopped

–to first audio, s
–audio, s
0characters sent to the model

Load a model and choose a voice, then press “Start”.

manual mode collects everything you type into one recording: press “Finish” and wait for the audio. Text that has already been spoken is not re-spoken after an edit.