File size: 13,474 Bytes
ad618ff 2c3383a ad618ff 2c23b59 ad618ff faba203 ad618ff 2c23b59 a527d03 faba203 ad618ff 2c23b59 ad618ff 2c23b59 a527d03 ad618ff a527d03 2c23b59 ad618ff faba203 ad618ff faba203 2c23b59 faba203 a527d03 ad618ff 2c23b59 faba203 ad618ff a527d03 faba203 ad618ff 2c23b59 ad618ff a527d03 ad618ff 2c23b59 ad618ff a527d03 2c23b59 a527d03 2c23b59 a527d03 2c23b59 a527d03 2c23b59 a527d03 2c23b59 a527d03 ad618ff a527d03 2c23b59 a527d03 2c23b59 ad618ff 2c23b59 ad618ff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | ---
license: apache-2.0
language:
- pt
pipeline_tag: text-to-speech
datasets:
- joserui/tiny-voca-pt-pt-data
tags:
- text-to-speech
- portuguese
- european-portuguese
- pt-pt
thumbnail: https://huggingface.co/joserui/tiny-voca-pt-pt/resolve/main/cartao.png
---
# tiny-voca PT-PT 2.1.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](https://huggingface.co/n4ze3m/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.
Version 2.1.1 (1 December 2026) is 2.1 with pronuncia-pt 0.4.6, and comes also
as a mini version, the same weights stored in 16 bits (14.9 MB).
Um modelo pequeno de texto para voz em português europeu, com duas vozes
inventadas. Leia-me em português no [GitHub](https://github.com/joseruimemory/tiny-voca-pt-pt/blob/main/LEIA-ME.md).
| Voice | Sample |
|---|---|
| F07 | <audio controls src="https://huggingface.co/joserui/tiny-voca-pt-pt/resolve/main/samples/F07-1-jardim.wav"></audio> |
| M02 | <audio controls src="https://huggingface.co/joserui/tiny-voca-pt-pt/resolve/main/samples/M02-1-jardim.wav"></audio> |
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.6 (in the code repository) |
| Pretrained weights in the model | None |
| Files | `tiny-voca-pt-pt-2.1.1.pt` 29.6 MB; mini: `tiny-voca-pt-pt-2.1.1-mini.pt` 14.9 MB (16-bit weights); for the browser, `onnx/tiny-voca-pt-pt-2.1.onnx` 41.3 MB (the 2.1 weights in 32 bits) |
| Licence | Apache-2.0 (the pronunciation tables derived from the Natura dictionaries: MPL 1.1) |
## What is new in 2.1.1
**Pronunciation** (pronuncia-pt 0.4.6).
- «de molho» (soaking) is always closed, «môlho», also when another «de»
follows («pôr o bacalhau de molho de véspera»); before, «molho de X» read it
as a bundle, open. A bundle of herbs stays open («um molho de coentros»).
- «padeiro» and «padaria» keep the open «a» of their crasis («pàdeiro»,
«pàdaria»), as a native listener asked; the rules reduced it.
- 17 of the 38,490 training sentences read differently, all with «padeiro» or
«padaria». The JavaScript port gives the same phonemes as Python in 13,683 of
13,683 test texts.
**A mini version, for tight space.** `tiny-voca-pt-pt-2.1.1-mini.pt` stores
every weight as a 16-bit float instead of 32: 14.9 MB instead of 29.6. It is
read back into 32-bit floats, so it runs on the same code. It is an
alternative, not a successor. On 5 sentences (both voices, same seed) the pitch
is the same (median difference 0 semitones, 95th percentile 0.1 to 0.3),
voicing matches in 97 to 99.5 % of the frames, and the mel spectrum differs by
0.2 to 0.7 dB on average; but in blind pairs two listeners picked the mini 7
times in 9, which chance gives about 9 % of the time, so a small difference can
sometimes be heard.
## 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
```bash
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.1.pt --local-dir weights
TINY_VOCA_FRONTEND=pt python -m tiny_voca.infer --checkpoint weights/tiny-voca-pt-pt-2.1.1.pt \
--voice F07 --text "Olá! Isto é o tiny-voca 2.1.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 or later; the 2.0 code would load it without them. The ONNX export for the
browser is still `onnx/tiny-voca-pt-pt-2.1.onnx`, with its settings in
`onnx/tiny-voca-pt-pt-2.1.json`: the same weights in 32 bits, used with
pronuncia-pt 0.4.6 in the demo. For the mini, download
`tiny-voca-pt-pt-2.1.1-mini.pt` and use it the same way. Versions 2.1 (`tiny-voca-pt-pt-2.1.pt`), 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.1 is used with the
code of the v2.1 release (pronuncia-pt 0.4.5), 2.0 with that of v2.0, 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](https://huggingface.co/spaces/hf-audio/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.
```bibtex
@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}
}
```
|