Pocket TTS — Erinome (Brazilian Portuguese, 6 layers)
Kyutai Pocket TTS fine-tuned on one Brazilian Portuguese voice ("Erinome") and distilled to the fast 6-layer size (CPU real time).
- Base model: kyutai/pocket-tts (CC BY 4.0, by Kyutai). The teacher was fine-tuned from the released
portuguese_24lmodel (1,000 steps); the student was distilled into 6 layers (initialised from the released 6-layer Portuguese weights, 16,000 steps,distill_cfg_coef 1.0) with the official training code (kyutai-labs/pocket-tts, MIT). - Data: marcosremar2/gemini-dataset-erinome, conversational and pace styles only (7.3 h; audio generated with Qwen3-TTS, Apache 2.0; rights to the reference voice confirmed by the dataset owner), plus 5 h of FLEURS pt_br text (CC BY 4.0) read by the fine-tuned teacher for distillation. No other speaker's audio was used.
- Voice:
erinome_6l_voice.safetensorsis a fixed voice state exported once from one training clip (formal_001304_cb272cbf.wav, 6.0 s, median pitch 236 Hz, typical of the voice; output ~245 Hz). An earlier export from a low-pitched clip (179 Hz) made the voice sound male. - License: CC BY 4.0, as the base model. Follow the base model's use conditions: no impersonation without consent, no deception, nothing unlawful or abusive.
Results
106-sentence Portuguese pronunciation audit, Whisper large-v3-turbo, mean of 3 runs.
| released Pocket 6l | this model | |
|---|---|---|
| WER | 8.2 % | 6.2 % |
| Speaker similarity to held-out Erinome, WavLM (real vs real 0.889) | 0.834 | 0.855 |
| ECAPA (real vs real 0.598) | 0.520 | 0.598 |
| DNSMOS (real Erinome 3.36) | 3.25 | 3.31 |
| CPU, 4 threads | ~3× real time | ~3× real time |
Normalize the text first (numbers, dates, money and abbreviations written out): Pocket reads digits poorly.
Use
from pocket_tts import TTSModel
model = TTSModel.load_model(config="erinome_6l.yaml")
state = model.get_state_for_audio_prompt("erinome_6l_voice.safetensors")
audio = model.generate_audio(state, "Bom dia a todos, vamos começar a reunião de hoje.")
ONNX (ONNX Runtime, CPU)
onnx/ holds the same model as two streaming graphs (exported from pocket_tts 3.3 with onnx/export.py, opset 17, fp32). The ucast desktop app runs them in Rust on ONNX Runtime 1.22 for offline Portuguese dubbing.
flow_lm.onnx(358 MB): text embedding, one step of the 6-layer FlowLM with its KV cache and one LSD step of the flow head. In:tokens[1, Nt] int64,latent[1, Nl, 32] (NaN = start of speech),noise[1, 32] (normal, variance 0.3 = temperature),cache[6, 2, 1, T, 16, 64]. Out:latent_out[1, 32],eos[1, 1] (the sentence ends 3 frames aftereosfirst goes above −4 at frame 6 or later; 5 frames for ≤ 4 words),cache_out[6, 2, 1, T + Nt + Nl, 16, 64]. Run it once with the text tokens and no latent, then once per 80 ms frame with the previous latent and no tokens.mimi_decoder.onnx(41 MB): the streaming Mimi decoder. In:latent[1, N, 32] (raw FlowLM latents),state[526720] (zeros at the start of a sentence),offset[1] int64 (200 Hz frames already decoded, 16 per latent). Out:audio[1, 1920 N] at 24 kHz,state_out.voice.bin(4 MB): the Erinome voice state as the FlowLM KV cache, float32 little endian [6, 2, 1, 75, 16, 64] — thecacheof the first call of every sentence.tokenizer.json: Kyutai's Portuguese tokenizer, unchanged.
Parity with PyTorch on CPU (onnxruntime 1.22.1, same noise, the 106-sentence audit): FlowLM step ≤ 4.5e-5 max abs error (teacher forced), Mimi audio ≤ 6.4e-6; free running, the autoregressive loop drifts apart on a few sentences, as two PyTorch runs on different hardware do. Whisper large-v3-turbo round trip, same seeds: PyTorch 6.9 / 7.5 / 7.3 % (mean 7.2 %), ONNX 7.2 / 7.6 / 7.3 % (mean 7.4 %) over three seeds. CPU speed (Xeon, 4 threads): 0.29 × real time (PyTorch 0.35 ×).
Teacher (24 layers)
teacher/ holds the fine-tuned 24-layer teacher the 6-layer model was distilled from (Kyutai's portuguese_24l fine-tuned on Erinome, step 1000): erinome_24l.safetensors (1.3 GB), erinome_24l.yaml and erinome_24l_voice.safetensors, exported from the same clip as the 6-layer voice (formal_001304_cb272cbf.wav). It is slower than the 6-layer model (about real time on 4 CPU threads); use it to distil again or to fine-tune further.
Training code
training/ holds the scripts and configs used on a Slurm GPU cluster (Apptainer, PyTorch 2.6, CUDA 12.4) with Kyutai's training code (kyutai-labs/pocket-tts @ 1df6b3da): data preparation and forced alignment (erinome_data.py, wav2vec2-xlsr-53 Portuguese), teacher fine-tuning (teacher*.yaml, train.sbatch), synthetic distillation data (synth.py), the student (student*.yaml, student_init.py), evaluation (scoring.py, final.py, anchors.py) and the voice-prompt choice (voices/). Paths and cluster settings are the author's; adapt them. Result summaries are in training/results/.