Benchmark (TTS-only, no voice cloning)¶
This document provides empirical TTS timing results for AbstractVoice’s available TTS engines, plus practical notes about voice stability (reusing the “same voice” across turns) and language support (English/French).
Benchmarks are hardware- and configuration-dependent. Treat the numbers as relative comparisons and re-run on your target machine for decisions.
Quick takeaways (what to use)¶
- If you need the fastest, simplest English/French TTS: use Piper (default).
- If you need omnilingual TTS and a “designed voice” you can keep stable with a seed: use OmniVoice.
- If you’re focused on EN/ZH and longer prompts (and accept heavier deps): AudioDiT can scale well, but French is not a supported target in this integration.
This benchmark measures TTS only. Voice cloning quality is not benchmarked here.
What we measure¶
- WAV generation time (seconds): end-to-end wall time of
VoiceManager.speak_to_file(..., format="wav"). - Speech duration (seconds): duration of the generated WAV file.
- RTF (“real-time factor”): (RTF = \frac{\text{generation time}}{\text{speech duration}}).
RTF < 1.0means faster than real time (good).RTF = 0.1means “~10× faster than real time”.- Multiple experiments: we run the same benchmark several times to capture run-to-run variance (thermal/scheduler/accelerator effects).
Where it’s defined:
- These values are computed in examples/bench_tts.py and aggregated across runs by examples/bench_tts_suite.py.
Engines covered¶
TTS engines in this repo (see abstractvoice/adapters/tts_registry.py):
- Piper (
tts_engine="piper") — lightweight, deterministic voice model selection - Supertonic (
tts_engine="supertonic") — fixed-profile ONNX TTS (M1-M5,F1-F5); not included in the historical tables below yet - AudioDiT (
tts_engine="audiodit") — torch/transformers (LongCat-AudioDiT-1B by default) - OmniVoice (
tts_engine="omnivoice") — torch/transformers (k2-fsa/OmniVoice)
AudioDiT note (model size):
- This benchmark uses the default checkpoint: meituan-longcat/LongCat-AudioDiT-1B.
- Upstream also provides a larger checkpoint: meituan-longcat/LongCat-AudioDiT-3.5B (not benchmarked here; expect higher memory/compute).
Voice stability (“same voice across a discussion”)¶
- Piper: stable by design.
- Reuse the same
languageand Piper voice mapping (AbstractVoice uses one default voice per language in the shipped mapping). - AudioDiT: best-effort stability.
- Uses a seed (
AudioDiTSettings.seed) plus a session prompt mechanism inAudioDiTTTSAdapter(enabled by default) to keep a consistent speaker across turns. - OmniVoice: best-effort stability.
- Use a fixed
instruct(voice design attributes) andseed(plus keep temperatures the same). - Note: torch accelerators (MPS/CUDA) can still introduce small nondeterminism. If you need stricter determinism, prefer CPU float32.
English vs French support (important)¶
- Piper: English + French are supported in the shipped catalog (
en,fr). - OmniVoice: upstream is designed for omnilingual TTS;
language="en"/language="fr"are supported. - AudioDiT: upstream focus is EN/ZH. The adapter declares supported languages
["en","zh"]. - French synthesis may still “work” but is not guaranteed to be intelligible or high quality.
How to reproduce¶
Single experiment (one run with N repetitions per text length)¶
python examples/bench_tts.py \
--out-dir untracked/bench_tts_rep5_s2s5 \
--engines piper,audiodit,omnivoice \
--languages en,fr \
--variants s2,s5,s6 \
--repetitions 5
Outputs:
- results.json: per-run timings + WAV paths
- summary.md / summary.json: mean/std per (engine, language, variant)
Multi-experiment suite (recommended)¶
Runs the full benchmark in separate Python processes multiple times, then aggregates:
python examples/bench_tts_suite.py \
--out-dir untracked/bench_tts_suite_reps5_2026-04-06_fixed \
--experiments 5 \
--sleep-s 2 \
--engines piper,audiodit,omnivoice \
--languages en,fr \
--variants s2,s5,s6 \
--repetitions 5
Outputs:
- suite_summary.md / suite_summary.json: aggregated mean/std + between-experiment variance
- exp_*/: each experiment run’s raw WAVs + per-run results
Benchmark texts (fixed prompts)¶
Yes — the benchmark uses fixed texts per (language, variant) across all engines (defined in examples/bench_tts.py).
Warmup always uses s2 (so adapters that build caches on first use pay that cost outside the averages).
English (en)¶
s2:Hello. This is a benchmark sentence for AbstractVoice.s5:Hello. This is a benchmark sentence for AbstractVoice. We are measuring how long speech synthesis takes. This extra sentence increases the length of the prompt. Finally, this is the fifth sentence.
French (fr)¶
s2:Bonjour. Ceci est une phrase de benchmark pour AbstractVoice.s6:Bonjour. Ceci est une phrase de benchmark pour AbstractVoice. Nous mesurons le temps nécessaire pour générer la parole. Cette phrase supplémentaire augmente la longueur du texte. Nous ajoutons encore une phrase pour arriver à cinq. Enfin, voici la sixième phrase.
Example results (macOS / Apple Silicon) — 1 experiment × 5 reps (2026‑04‑07)¶
These results were collected with:
- Piper: ONNX Runtime (CPU)
- AudioDiT: torch device mps, dtype float16 (default device/dtype policy)
- OmniVoice: torch device mps, dtype float16 (Apple Silicon / Metal)
This is intentionally “order of magnitude” oriented. If you need variance details (standard deviation / min / max), run the suite yourself and inspect the generated suite_summary.md.
| engine | lang | text | avg WAV gen time (s) | avg speech length (s) | RTF |
|---|---|---|---|---|---|
| piper | en | s2 | 0.077 | 4.232 | 0.018 |
| piper | fr | s2 | 0.078 | 4.250 | 0.018 |
| piper | en | s5 | 0.246 | 14.023 | 0.018 |
| piper | fr | s6 | 0.276 | 15.819 | 0.017 |
| omnivoice | en | s2 | 0.889 | 3.560 | 0.250 |
| omnivoice | fr | s2 | 0.941 | 4.000 | 0.235 |
| omnivoice | en | s5 | 2.490 | 12.240 | 0.203 |
| omnivoice | fr | s6 | 3.579 | 16.520 | 0.217 |
| audiodit | en | s2 | 0.676 | 3.840 | 0.176 |
| audiodit | fr | s2 | 0.715 | 4.267 | 0.168 |
| audiodit | en | s5 | 1.072 | 13.653 | 0.079 |
| audiodit | fr | s6 | 1.443 | 18.517 | 0.078 |
Interpretation: - Piper is fastest by orders of magnitude (sub-second generation for these prompts). - Torch engines are slower on MPS for short prompts, but scale differently with longer prompts: - AudioDiT shows lower RTF for longer text in this run. - OmniVoice is competitive and has strong multilingual coverage.
Qwen3-TTS on Apple silicon: MLX versus PyTorch (2026-10-26)¶
Qwen3-TTS has two backends (ADR 0008). Measured on an 18-core Apple silicon laptop, the standard
63-word English reply (about 25 s of speech), speaker ryan, upstream sampling (temperature 0.9,
top-k 50), warm model. The MLX rows use the default 8-bit talker and the default chunk cadence
(6 codec frames, then 12), measured through VoiceManager on an otherwise idle machine
(speak_to_bytes for buffered, speak_to_audio_chunks for streamed, 2-3 runs each). "Load incl.
warm-up" is VoiceManager(tts_engine="qwen3-tts") construction with the weights in the page
cache: load, 8-bit quantization and a short priming generation. "MLX peak at load" is
mx.get_peak_memory() after that load: the bf16 weights are read before the talker is quantized,
so this transient is higher than the memory held while speaking. The PyTorch rows were measured
earlier the same day under other load.
| Backend | Checkpoint | RTF buffered / streamed | First streamed audio | Load incl. warm-up | MLX peak at load |
|---|---|---|---|---|---|
| MLX, 8-bit | 1.7B CustomVoice | 0.17-0.22 / 0.22-0.24 | 0.10-0.14 s | 0.6 s | 7.9 GB |
| MLX, 8-bit | 0.6B CustomVoice | 0.19-0.20 / 0.19-0.23 | 0.09-0.12 s | 0.4 s | 3.6 GB |
| PyTorch (MPS, bf16) | 1.7B CustomVoice | 0.9-1.9 | 9.1 s (3 sentence segments) | 20-60 s | - |
| PyTorch (MPS, bf16) | 0.6B CustomVoice | 1.1-2.1 | 9.6 s | - | - |
Other processes using the Apple GPU slow MLX inference without raising the CPU load average; compare figures only from an idle machine.
Interpretation:
- The PyTorch path on the Apple GPU is kernel-launch bound (sixteen codebook steps per 80 ms
frame), so the 0.6B is no faster than the 1.7B; MLX removes most of that overhead.
- On MLX a reply is one generation streamed as 0.96 s chunks with no playback stalls; the first
chunk arrives after six frames. The voice cannot drift between sentences because nothing is
re-sampled per sentence.
- 8-bit is the right default: bf16 weights make the 1.7B memory-bound (RTF 0.92).
- Transcription parity (Whisper large-v3-turbo, 1.7B, 3 samples each): WER 0.17 on PyTorch,
0.14 on MLX, both close to Whisper's own normalisation floor on this text.
Platform check: Linux processor, Linux NVIDIA, Apple silicon (2026-11-10)¶
Release 0.21.0 was installed from scratch on three machines and asked to speak and transcribe the same sentence (about 8 to 9 s of audio). "Warm" is the second call with the model resident.
| Engine, model | Linux, processor only (6 cores, no GPU, Python 3.14) | Linux NVIDIA (Quadro RTX 5000 16 GB, Turing, 4 vCPU) | Apple silicon laptop (MLX) |
|---|---|---|---|
| Qwen3-TTS 0.6B CustomVoice | processor, float32: 4.6 to 4.8 times slower than real time (4 vCPU) | cuda, float32, CUDA graph: 1.05 of real time first call, 0.82 warm | MLX 8-bit on Metal: 0.15 of real time, model loads in 1.1 s |
| Supertonic 3 (ONNX) | CPU provider: 3.1 s | CUDA provider (abstractvoice[onnx-cuda]): 0.73 s, 0.10 s warm; CPU provider: 1.5 s |
CPU provider: 1.9 to 2.3 s |
| Whisper large-v3-turbo | base model on CPU int8: 2.5 s | faster-whisper CUDA int8_float16: 0.8 s, 0.5 s warm; CPU int8: 10 s | mlx-whisper on Metal: 0.6 s, 0.2 s warm |
What the table says: every engine picks its device on its own and reports the reason
(runtime_info() / execution_device()); on a card without native bfloat16 the torch engines
run in float32; Qwen3-TTS on CUDA replays its codebook predictor as a CUDA graph; Supertonic
and Piper reach the NVIDIA card through the onnx-cuda extra; a processor-only host runs
everything, slower, with the same API. The gpu profile installs on a host without a card and
runs on the processor. Methodology: one sentence, clean virtual environments, models downloaded
by the package itself, nvidia-smi sampled during the GPU runs (Supertonic peaked at 38 % of the
card, Qwen3-TTS at 69 %).
Same host, 0.21.1 installed together with the rest of the framework's gpu profile (abstractcore
2.35.0 with vllm, torch 2.13.0+cu130): Supertonic on CUDA 0.70 s then 0.13 s warm, Whisper
large-v3-turbo 1.0 s then 0.6 s, Qwen3-TTS 0.6B 1.19 of real time first call then 0.90 warm. With
0.21.0 the same environment failed every CUDA convolution (two cuDNN wheels in one folder, see the
changelog).
Subjective note (voice cloning)¶
This benchmark does not measure voice cloning.
Maintainer note (subjective): for voice cloning, OmniVoice tends to produce impressively high quality in practice and is often the best choice when cloning is the priority.