ELF-Voice
One 106M-parameter transformer that does both speech recognition (speech β text) and zero-shot speech synthesis (text + a voice prompt β speech) with the same weights. It is built on ELF (Embedded Language Flows), a flow-matching language model, and initialised from embedded-language-flows/ELF-B-owt-torch.
Code, training and evaluation scripts: https://github.com/WanZhengyan/TTS-ELF
How it works, in one paragraph
Speech (as a 100-band mel spectrogram, 93.75 frames per second) and text (as frozen T5-small embeddings) sit side by side in one sequence of 1,648 positions. The model learns to turn noise into whichever part is missing. Give it audio and it writes the text. Give it text plus a few seconds of a speaker's voice and it writes the mel spectrogram, which Vocos turns into a waveform. For recognition, the audio also passes through a frozen Whisper-large-v3 encoder; for synthesis, a speaker x-vector of the voice prompt is added.
Checkpoints
Each folder holds ckpt.pt (EMA weights, training arguments and the character table) and info.json (training setup). ms_f5x_100k is the recommended checkpoint.
| Folder | Synthesis | Recognition data | Synthesis data | Training |
|---|---|---|---|---|
ms_f5x_100k |
multi-speaker, zero-shot (voice prompt + speaker x-vector) | LibriSpeech 960 h (886 h after dropping clips over 16 s) | LibriTTS train-clean-100/360 + train-other-500 at 24 kHz (479.5 h after the same filter) | 100K steps on 4 H100; 16 recognition + 208 synthesis rows per step, about 305K mel frames of synthesis audio per step (F5-TTS small: 307,200); per-task loss normalisation |
ms_unified_100k |
same as above | same | same | 100K steps on 4 H100; 16 recognition + 32 synthesis rows per step (about 10% of the synthesis audio of ms_f5x_100k) |
dual_lj_100k |
single speaker (LJSpeech voice), prompt-continued | LibriSpeech 960 h (same filter) | LJSpeech, all 13,100 clips (24 h) | 100K steps; 16 recognition + 16 synthesis rows per step |
Results
Evaluated with the papers' own protocols. Synthesis is generated following F5-TTS's inference rules and scored with F5-TTS's official scoring code; our ground-truth row reproduces the one in F5-TTS's Table 9. Recognition uses ELF-S2T's sampler and its jiwer scoring.
Zero-shot TTS, LibriSpeech-PC test-clean (1,127 pairs, unseen speakers)
| Model | WER β | Speaker similarity β | UTMOS β |
|---|---|---|---|
ELF-Voice ms_f5x_100k (mean of 3 generation seeds) |
6.37 | 0.231 | 2.66 |
ELF-Voice ms_unified_100k (1 seed) |
12.5 | 0.239 | 2.19 |
| F5-TTS small, 100K steps (paper) | 29.5 | 0.53 | 3.78 |
| F5-TTS small, 200K steps (paper) | 4.58 | 0.59 | 4.07 |
| Real recordings | 2.22 | 0.695 | 4.10 |
ms_f5x_100k saw about as much synthesis audio as F5-TTS small did in its 100K steps (30.5B vs 30.7B mel frames). Its intelligibility (WER) is far better than F5-TTS small at 100K steps; voice similarity and audio quality are clearly worse. The three seeds give WER 6.53 / 6.28 / 6.29, similarity 0.230 / 0.231 / 0.231 and UTMOS 2.665 / 2.665 / 2.656.
Speech recognition, LibriSpeech test-clean (all 2,620 utterances)
| Model | WER β, ELF-S2T sampler | WER β, Euler ODE sampler |
|---|---|---|
ELF-Voice ms_f5x_100k |
14.06 | 12.98 |
ELF-Voice ms_unified_100k |
14.24 | 13.68 |
ELF-Voice dual_lj_100k |
11.48 | β |
| ELF-S2T, ELF-B (paper, recognition only) | 10.50 | β |
TTS for dual_lj_100k, LJSpeech (1,000 clips, each continued from another LJSpeech clip as the voice prompt)
| Model | WER β | Speaker similarity β | UTMOS β |
|---|---|---|---|
ELF-Voice dual_lj_100k |
13.5 | 0.638 | 3.57 |
| Real recordings (same 1,000 clips) | 3.74 | 0.703 | 4.38 |
The model was trained on all 13,100 LJSpeech clips, so these test clips were seen in training. F5-TTS also reports an LJSpeech column, but on a different clip list, so the numbers are not directly comparable.
Use
import torch
from eval_lj import load_model # from the GitHub repo
ck = torch.load("ms_f5x_100k/ckpt.pt", map_location="cpu", weights_only=False)
model, vocab = load_model(ck, torch.device("cuda"))
Generation and evaluation scripts are in the GitHub repo (gen_f5_protocol.py for synthesis, eval_s2t_full.py for recognition). The guidance mode is picked from the checkpoint automatically: ms_f5x_100k and ms_unified_100k use joint classifier-free guidance (text, prompt and x-vector dropped together) with w = 3 and Sway sampling β1; dual_lj_100k uses text-only guidance with w = 2.
Limitations
- English only, read audiobook speech.
dual_lj_100kspeaks only in the LJSpeech voice. - Zero-shot voice similarity is low: the voice is roughly right (pitch, gender) but does not sound like the reference speaker.
- Sequences hold at most 16.38 s of audio; longer utterances are cut at silences for recognition (ELF-S2T uses a 30 s window), and 2 of the 1,127 TTS pairs are shortened to fit.
- Training recognition alongside synthesis costs synthesis quality: a synthesis-only control trained with the
ms_unified_100kbudget reached WER 9.88, similarity 0.281 and UTMOS 2.73.
Training data
LibriSpeech and LibriTTS (both CC BY 4.0), LJSpeech (public domain).