tiny-voca PT-PT 2.1
A small European Portuguese text-to-speech model with two invented voices, F07 (female, husky) and M02 (male, deep and slow). The model, waveform generator included, has 4.5M parameters (4,532,875), the architecture of tiny-voca by Muhammed Nazeem; each voice adds a small neural wave head of 1.4M parameters (1,428,612) after the waveform generator: 7.4M parameters in all (7,390,099). The heads remove most of the metallic sound, as the native listener confirmed by ear: for the male voice in 2.0, and for the female voice in 2.1 (30 November 2026). Version 2.1 is 2.0 with corrected pronunciation («molho» and other words that the teacher or the rules said with the wrong vowel) and a wave head for the female voice too.
Um modelo pequeno de texto para voz em português europeu, com duas vozes inventadas. Leia-me em português no GitHub.
| Voice | Sample |
|---|---|
| F07 | |
| M02 |
More samples in samples/ (numbers, a question, a long sentence; the texts are in
samples/textos.txt, the same as for 1.1 and 2.0).
| Parameters | 7.4M in all: 4,532,875, plus a wave head of 1,428,612 per voice (7,390,099) |
| Voices | F07, M02 (European Portuguese, Lisbon norm) |
| Output | 24 kHz mono |
| Input | Text, converted to phonemes with pronuncia-pt 0.4.5 (in the code repository) |
| Pretrained weights in the model | None |
| Files | tiny-voca-pt-pt-2.1.pt 29.6 MB; onnx/tiny-voca-pt-pt-2.1.onnx 41.3 MB |
| Licence | Apache-2.0 (the pronunciation tables derived from the Natura dictionaries: MPL 1.1) |
What is new in 2.1
Pronunciation (pronuncia-pt 0.4.5, and a fine-tune for «molho»). 657 of the 38,490 training sentences and 7 of the 330 leaderboard and test sentences read differently from 2.0.
- «molho» (sauce) is said «môlho». The cause was the teacher: Qwen3-TTS reads «molho» open whatever the accent mark (1 closed reading in 36 with «molho», 5 with «môlho»), and the model learned what it heard. Written «moulho» (in Lisbon «ou» is said [o]) it reads it closed, 32 times in 36, without a diphthong. 133 new sentences were spoken that way by the same teacher with the same voices, each clip measured, and the 569 kept trained only the phoneme, stress and voice embeddings, the encoder and the duration predictor for 1,000 steps, with the loss counted only on the word «molho» and the model held to 2.0 everywhere else. In sentences that were not trained on, «molho» (sauce) comes out closed in 30 of 32 readings (2.0: 0 of 32).
- «pôr de molho» (to soak) is closed too, as in the Priberam and Wiktionary dictionaries (pôr, deixar, ficar, estar or ter de molho): closed in 4 of 4 test readings in each voice (open in 4 of 4 before). «molho» is the verb, open, after a subject or an adverb («eu sempre molho o pão»); «molho de X» is the sauce when X goes into a sauce («molho de amendoim») and the bundle otherwise («um molho de salsa»).
- Plurals and feminines with the open vowel. Adjectives in -oso open the vowel in the plural and in the feminine («famosos», «famosa», «gostosas»; the singular «famoso» stays closed), the grammar rule, except the nouns «esposa» and «raposa» and their plurals, which the Priberam dictionary gives closed; and 27 other plurals that Priberam gives only open, with a closed singular («poços», «caroços», «ossos», «jogos», «povos», «fornos», «impostos», «destroços», «reforços»…). «almoços», with both readings in Priberam, is not changed.
- Verbs in -olher and olhar, and words in -ola and -ole. The open stressed o of the present forms of -olher verbs («escolhe», «recolhe», «colhem»; «escolho» and the subjunctive «escolha» stay closed), of olhar and molhar («olhas», «eu olho para o mar», «a chuva molha»), and of words in -ola, -ole and -olhe («mola», «cola», «camisola», «mole», «gole»; not when a written accent puts the stress elsewhere, as in «sêmola» or «pérola»), except «cebola», «ampola», «rola» (the bird) and «controle» as a noun (the verb, «que ele controle», is open).
- Measured on the model, with only the new phonemes (new sentences; a formant measure against closed and open references of the same voice): the verbs and the -ola/-ole words as the rules ask in 23 of 24 readings (female) and 24 of 24 (male), against 17 and 19 with the old phonemes; «de molho» closed and the plurals open in every test reading; the -oso adjectives open, and the singular «vaidoso» and the noun «esposa» closed, in 6 of 6 readings in each voice, as the model already said them.
A clearer female voice. The female voice has a wave head too, the same network and recipe as the male voice's in 2.0 (trained with the rest of the model frozen; a gain, a phase rotation and an added spectrum per STFT bin and frame; the pitch stays the oscillator's). The native listener confirmed by ear on 30 November 2026 that its metallic buzz is gone. Trained longer, such a head learns from the teacher, who never rises in questions, to lower the harmonics at the end of sentences, so the step was chosen by the question rise: the female voice rises in all 32 test questions at every saved step from 1,000 to 5,000, and step 4,000 was kept.
Both voices in the browser demo, each through its own head: the ONNX export keeps the heads as a bank from which the voice input picks its own. The demo now loads ONNX Runtime Web 1.31.1 (it was 1.20.1).
Use
git clone https://github.com/joseruimemory/tiny-voca-pt-pt.git && cd tiny-voca-pt-pt
pip install -e . -e ./pronuncia-pt-0.4
hf download joserui/tiny-voca-pt-pt tiny-voca-pt-pt-2.1.pt --local-dir weights
TINY_VOCA_FRONTEND=pt python -m tiny_voca.infer --checkpoint weights/tiny-voca-pt-pt-2.1.pt \
--voice F07 --text "Olá! Isto é o tiny-voca 2.1 em português europeu." --output ola.wav
The checkpoint keeps its wave heads in a wave_heads entry, which needs the
2.1 code; the 2.0 code would load it without them. The ONNX export for the
browser is onnx/tiny-voca-pt-pt-2.1.onnx, with its settings in
onnx/tiny-voca-pt-pt-2.1.json. Versions 2.0 (tiny-voca-pt-pt-2.0.pt) and
1.1 stay available in this repository; each checkpoint checks the
pronunciation it was made for, so 2.0 is used with the code of the v2.0 release
(the 2.1 code refuses the 2.0 checkpoint) and 1.1 with its own.
Training data
As 2.0 (38,490 sentences from Portugal, 65,986 clips used for training, the teacher Qwen3-TTS 12Hz 1.7B Base in in-context mode; see the dataset card), plus, for «molho», 569 clips of 133 sentences written for 2.1, spoken by the same teacher with the help spelling «moulho». These clips are not in the published dataset.
Training
2.0 (120,000 steps from scratch and 5,000 of tuning, one Mac mini M4 Pro, PyTorch MPS), then for 2.1, on two Mac minis M4 Pro: the female voice's wave head, 4,000 steps on the female clips only with the rest of the model frozen (2.5 hours for the run, stopped at step 5,026); and the «molho» fine-tune, 1,000 steps in 7 minutes, only the phoneme, stress and voice embeddings, the encoder and the duration predictor learning.
Evaluation
Word error rate, lower is better. The first three columns were measured locally with the code of the Open TTS Leaderboard (Qwen3-ASR-1.7B); nothing was submitted. The last column is Apple's on-device speech recognition (macOS 26.2, requested as pt-PT) on 149 sentences from Portugal; one word is about 0.05.
| Model, voice | MiniMax pt | ZTTS2 pt | Average | European test, Qwen3-ASR | European test, Apple |
|---|---|---|---|---|---|
| 1.1, F3 | 1.76 | 2.84 | 2.30 | 2.82 | 1.67 |
| 1.1, M1 | 1.71 | 3.56 | 2.63 | 2.66 | 1.88 |
| 2.0, F07 | 2.00 | 3.51 | 2.75 | 3.39 | 1.57 |
| 2.0, M02 | 1.71 | 3.09 | 2.40 | 3.19 | 1.72 |
| 2.1, F07 | 1.90 | 3.40 | 2.65 | 3.39 | 1.62 |
| 2.1, M02 | 1.67 | 2.73 | 2.20 | 2.93 | 1.67 |
- The 2.1 leaderboard and Qwen3-ASR columns were measured end to end, both voices, with pronuncia-pt 0.4.5 as released, in an independent check.
- Two neighbouring steps of the same fine-tune differ by about 0.1 in the average (2.73 and 2.87 for the female voice before its head): differences of that size are the recogniser's noise.
- «molho» (sauce), in sentences that were not trained on, measured by a phone recogniser: closed in 0 of 32 readings in 2.0 and in 30 of 32 in 2.1 (both voices), the bundle and the verb still open in 14 of 14. An independent check with its own sentences and a formant measure against closed and open references of the same voice: 0 of 9 in 2.0, 9 of 9 in 2.1, in each voice.
- Yes/no questions that rise by 2 semitones or more: female 32 of 32 in both versions; male 25 of 32 in 2.0 and 26 of 32 in 2.1 (on 12 other new questions of the independent check, 10 and 9).
- Speed on four CPU threads (Apple M4 Pro): in PyTorch, on 249 sentences, the female voice runs 82 times faster than real time (108 in 2.0, without a head) and the male voice 77 (77); on the 149 European test sentences, the independent check measured 73 for the female voice. In ONNX Runtime (Python, CPU, 157 sentences per voice), both voices run about 148 times faster than real time in both versions.
Limitations
- «controle» as a noun (Brazilian; in Portugal «controlo») and «rola» (the bird) come out open, although the phonemes ask for the closed vowel: the model learned them so from the teacher.
- «acordos» comes out open although the phoneme is closed, and the subjunctive of coser («que ele descosa», «recosa») gets the open vowel of the -oso adjectives by mistake.
- Plurals that Priberam gives open but that are not in the list stay closed («socorros», «tremoços», «miolos», «despojos»); the model says «socorros», «miolos» and «despojos» closed.
- «a seca» (drought) is said «sêca», the Lisbon norm; in the north of Portugal it is «séca».
- By the measure, the male voice does not rise in 6 of 32 yes/no test questions; the native listener heard the seven of 2.0 and found them fine.
- The speech it learned from is synthetic, so it has the teacher's accent and some of its mistakes. Pronunciation comes from rules: unusual words, foreign names and abbreviations can come out wrong. Two voices only; no voice cloning.
Please do not use it to pass as a real person.
Credits
tiny-voca by Muhammed Nazeem; Qwen3-TTS by the Qwen team; Chatterbox (as a
bridge for the voices); Common Voice by Mozilla; the Natura dictionaries
(José João de Almeida, Universidade do Minho) for the spelling tables;
facebook/wav2vec2-lv-60-espeak-cv-ft for alignment during training.
@software{nazeem2026tinyvoca,
author = {Nazeem, Muhammed},
title = {tiny-voca: a 4.5M-parameter two-voice English text-to-speech model},
year = {2026},
url = {https://huggingface.co/n4ze3m/tiny-voca}
}