Sten-TTS-1.7B
Swedish text-to-speech on your own servers, with your own voice
For product teams, public-sector services and device makers that need Swedish or Nordic speech output and cannot route their users' text through a cloud service.
Swedish Embedded AB will:
- add your brand voice, another language or a dialect to a model like this one;
- adapt pronunciation to your domain: product names, numbers, terminology;
- deploy it privately, behind an OpenAI-compatible speech API or on an edge device.
From this repository: a 1.7B model with 12 named Swedish voices from 6 regions, fine-tuned on 420 hours of speech (194,769 utterances) in 32 minutes on 11 GPUs. On FLEURS test sentences it never saw, a speech recogniser's character error rate is 0.064, against 0.102 for the base model.
Tell Martin Schröder about your use case on LinkedIn, or email info@swedishembedded.com.
Built by Martin Schröder info@swedishembedded.com (LinkedIn), Swedish Embedded AB.
Sten-TTS-1.7B is a Swedish text-to-speech model with 12 named voices, 6 female and 6 male, from
6 regions of Sweden. It is a fine-tune of Qwen/Qwen3-TTS-12Hz-1.7B-Base that adds
Swedish as a language. English is trained alongside it, so English words and names inside Swedish sentences keep
their English pronunciation. The model produces 24 kHz audio, loads in the upstream qwen-tts package without
conversion, and is released under Apache-2.0.
The training data is published as Sten-TTS Voice: the 420 hours used here, with held-out sets, sources and licences.
Listen
Real, unpicked output: every voice reads a FLEURS sv_se test sentence that was never part of the training data, and the first take (seed 1) is the one you hear. CER is the character error rate of a speech recogniser (Qwen/Qwen3-ASR-1.7B) transcribing that clip, so 0.000 means every character was recognised.
Resenärer på väg till länder med höga skatter kan ibland spara en avsevärd summa, särskilt på produkter som alkoholhaltiga drycker och tobak.
| voice | gender, region | CER | listen |
|---|---|---|---|
| Axel | male, Dalarna area | 0.014 | |
| Astrid | female, Central Sweden | 0.072 | |
| Erik | male, Central Sweden | 0.000 | |
| Linnea | female, Stockholm area | 0.000 | |
| Viktor | male, Stockholm area | 0.029 | |
| Elsa | female, Gothenburg area | 0.000 | |
| Oskar | male, Gothenburg area | 0.014 | |
| Maja | female, Western southern Sweden | 0.216 | |
| Nils | male, Western southern Sweden | 0.000 | |
| Signe | female, Norrland | 0.014 | |
| Arvid | male, Norrland | 0.000 | |
| Ingrid | female, Dalarna area | 0.007 |
Usage
Python, with the upstream package
pip install qwen-tts soundfile (tested with qwen-tts 0.1.1).
import soundfile as sf
import torch
from qwen_tts import Qwen3TTSModel
model = Qwen3TTSModel.from_pretrained("swedishembedded/sten-tts", device_map="cuda:0", dtype=torch.bfloat16)
wavs, sample_rate = model.generate_custom_voice(
text="Hej och välkommen till Sten.",
speaker="axel",
language="swedish",
)
sf.write("axel.wav", wavs[0], sample_rate)
On a machine without a GPU, load with device_map="cpu", dtype=torch.float32.
HTTP, with brain's OpenAI-compatible API
brain pull swedishembedded/sten-tts
brain serve --openai 127.0.0.1:8080 # prints the API key it generates, or pass --api-key-file
curl http://127.0.0.1:8080/v1/audio/speech \
-H "Authorization: Bearer $BRAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "swedishembedded/sten-tts", "voice": "axel", "language": "swedish",
"input": "Hej och välkommen till Sten.", "response_format": "wav"}' \
-o axel.wav
Always send "language": "swedish"; without it the text is spoken as English.
Voices
Pass the name as speaker (Python) or voice (HTTP).
| voice | gender | region |
|---|---|---|
astrid | female | Central Sweden (Mellansverige) |
erik | male | Central Sweden (Mellansverige) |
linnea | female | Stockholm area (Stockholm med omnejd) |
viktor | male | Stockholm area (Stockholm med omnejd) |
elsa | female | Gothenburg area (Göteborg med omnejd) |
oskar | male | Gothenburg area (Göteborg med omnejd) |
maja | female | Western southern Sweden (Västra sydsverige) |
nils | male | Western southern Sweden (Västra sydsverige) |
signe | female | Norrland |
arvid | male | Norrland |
ingrid | female | Dalarna area (Dalarna med omnejd) |
axel | male | Dalarna area (Dalarna med omnejd) |
Each voice is an anonymous speaker of the NST Swedish speech database (CC0-1.0), chosen as the liveliest reader of their gender and region by pitch variation, loudness dynamics and speaking rate. The region is where the speaker grew up. The recordings are read sentences, so expect a regional accent rather than dialect.
Evaluation
Each of the 12 voices read every sentence of the sets below. Qwen/Qwen3-ASR-1.7B, told that the language is Swedish, transcribed each clip, and the character error rate (CER, lower is better) compares that transcript with the sentence. The base model read the same sentences, cloning each voice from one of its recordings.
| test set | sentences | Sten-TTS | base model |
|---|---|---|---|
| FLEURS | 200 | 0.064 | 0.102 |
| Code-switching | 60 | 0.062 | 0.069 |
| Numbers | 40 | 0.157 | 0.179 |
FLEURS: FLEURS sv_se test sentences, never trained on; Code-switching: hand-written Swedish sentences with English words, names and brands; Numbers: hand-written sentences with numbers, dates, times, units and abbreviations.
- Against the base model. On FLEURS the CER difference, Sten-TTS minus base, is -0.037 (95% paired-bootstrap interval -0.049 to -0.027, n = 2,400 voice and sentence pairs).
- Reliability. Failure rate 0 on the 4,800 FLEURS clips: none was silent, ran into the length limit or ran on past its text.
- Voice consistency. Identification accuracy is 1.00 for every voice: a speaker encoder matched each FLEURS clip to the nearest of the 12 voices' real recordings. Cosine similarity to the voice's own recordings is 0.995 for synthesized clips and 0.995 for real held-out recordings; at that level the encoder separates little, so read the identification result, not the similarity, as the evidence.
- Compatibility. The checkpoint loads and speaks in the upstream
qwen-ttspackage, unconverted.
CER per voice:
| voice | region | FLEURS | Code-switching | Numbers |
|---|---|---|---|---|
| astrid | Central Sweden | 0.050 | 0.055 | 0.148 |
| erik | Central Sweden | 0.051 | 0.052 | 0.159 |
| linnea | Stockholm area | 0.053 | 0.065 | 0.143 |
| viktor | Stockholm area | 0.069 | 0.061 | 0.160 |
| elsa | Gothenburg area | 0.055 | 0.039 | 0.142 |
| oskar | Gothenburg area | 0.048 | 0.054 | 0.149 |
| maja | Western southern Sweden | 0.125 | 0.131 | 0.234 |
| nils | Western southern Sweden | 0.091 | 0.076 | 0.190 |
| signe | Norrland | 0.047 | 0.046 | 0.136 |
| arvid | Norrland | 0.056 | 0.049 | 0.124 |
| ingrid | Dalarna area | 0.060 | 0.056 | 0.151 |
| axel | Dalarna area | 0.060 | 0.052 | 0.149 |
CER per region:
| region | FLEURS | Code-switching | Numbers |
|---|---|---|---|
| Central Sweden | 0.050 | 0.054 | 0.154 |
| Dalarna area | 0.060 | 0.054 | 0.150 |
| Gothenburg area | 0.051 | 0.047 | 0.146 |
| Norrland | 0.051 | 0.048 | 0.130 |
| Stockholm area | 0.061 | 0.063 | 0.152 |
| Western southern Sweden | 0.108 | 0.104 | 0.212 |
How to read these numbers: CER measures the recogniser as well as the speech, so it is a relative measure between systems on the same sentences, not an absolute error count. On the voices' real held-out recordings the same recogniser scores 0.147, which is higher than on the synthesized speech. That reflects those recordings (16 kHz, made around 1999, other sentences) and is not a claim that the model is clearer than its speakers.
Compact variants
Smaller models cut out of Sten-TTS-1.7B by weight surgery and distilled from it, each in its own folder of this repository with its own card. The CER difference is to Sten-TTS-1.7B on the same FLEURS clips, with its 95% paired-bootstrap interval; the real-time factor is measured one request at a time on one GPU (below 1 is faster than real time).
| model | parameters | FLEURS CER | at parity with Sten-TTS-1.7B | CER difference | real-time factor |
|---|---|---|---|---|---|
| Sten-TTS-950M | 952.6 M | 0.064 | yes | -0.0001 (-0.0031 to +0.0030) | 0.12 |
Listen across sizes
Every voice in Sten-TTS-1.7B and Sten-TTS-950M, reading the same sentences with the same seed: the first take each model's evaluation made (seed 1), unpicked, on text none of them was trained on. CER is the recogniser's character error rate on that one clip; the means over all clips are in each model's card.
Resenärer på väg till länder med höga skatter kan ibland spara en avsevärd summa, särskilt på produkter som alkoholhaltiga drycker och tobak.
| voice | region | Sten-TTS-1.7B | Sten-TTS-950M |
|---|---|---|---|
| Axel | Dalarna area | CER 0.014 | CER 0.000 |
| Astrid | Central Sweden | CER 0.072 | CER 0.029 |
| Erik | Central Sweden | CER 0.000 | CER 0.007 |
| Linnea | Stockholm area | CER 0.000 | CER 0.029 |
| Viktor | Stockholm area | CER 0.029 | CER 0.014 |
| Elsa | Gothenburg area | CER 0.000 | CER 0.029 |
| Oskar | Gothenburg area | CER 0.014 | CER 0.000 |
| Maja | Western southern Sweden | CER 0.216 | CER 0.115 |
| Nils | Western southern Sweden | CER 0.000 | CER 0.151 |
| Signe | Norrland | CER 0.014 | CER 0.000 |
| Arvid | Norrland | CER 0.000 | CER 0.014 |
| Ingrid | Dalarna area | CER 0.007 | CER 0.036 |
Tåget avgår klockan 14.30 från spår 3.
| voice | region | Sten-TTS-1.7B | Sten-TTS-950M |
|---|---|---|---|
| Axel | Dalarna area | CER 0.027 | CER 0.243 |
| Astrid | Central Sweden | CER 0.054 | CER 0.000 |
| Erik | Central Sweden | CER 0.027 | CER 0.000 |
| Linnea | Stockholm area | CER 0.135 | CER 0.000 |
| Viktor | Stockholm area | CER 0.081 | CER 0.000 |
| Elsa | Gothenburg area | CER 0.027 | CER 0.000 |
| Oskar | Gothenburg area | CER 0.108 | CER 0.000 |
| Maja | Western southern Sweden | CER 0.135 | CER 0.108 |
| Nils | Western southern Sweden | CER 0.135 | CER 0.000 |
| Signe | Norrland | CER 0.000 | CER 0.108 |
| Arvid | Norrland | CER 0.000 | CER 0.027 |
| Ingrid | Dalarna area | CER 0.000 | CER 0.027 |
Training
- Base model: Qwen/Qwen3-TTS-12Hz-1.7B-Base, revision
fd4b254389122332181a7c3db7f27e918eec64e3. - Data: 420 hours of speech (376 h Swedish, 44 h English), 194,769 utterances from 4,296 speakers. Published as Sten-TTS Voice.
- Method: a full fine-tune of the speech-generating parts of the model, with the text embedding frozen.
- Run: Trained with brain on 11 NVIDIA GH200 GPUs in 32 minutes. Training stopped early; the release is the checkpoint with the lowest loss on held-out speech, step 1100 of 1500.
- Reproducibility: the release was produced by a single recipe in which the base model, every data source and the recogniser are pinned to a revision, and the random seed is fixed.
| source | content | licence |
|---|---|---|
| NST Swedish | read sentences, speakers from ten Swedish regions, 16 kHz | CC0-1.0 |
| RixVox-v2 | debates of the Swedish Parliament | ODC-BY-1.0 |
| LibriVox Swedish audiobooks | public-domain audiobook narration | CC0-1.0 |
| FLEURS sv_se, train and dev splits | read Wikipedia sentences | CC-BY-4.0 |
| LibriTTS-R train-clean-100 | English audiobooks, 24 kHz | CC-BY-4.0 |
Only the 12 NST speakers above are named voices; no other speaker in the training data can be selected.
Limitations
- Most of the Swedish training audio, including all recordings of the named voices, is 16 kHz, so the 24 kHz output lacks the top of its band.
- The voices are read-speech speakers recorded around 1999. The checkpoint speaks with its named voices only: it takes no style instruction and does not clone a voice from a reference recording.
- Text is read as written. There is no separate text normalisation, so numbers, dates, abbreviations and symbols are the weakest area. The Numbers set under Evaluation measures how well.
- Error rates differ between voices; the per-voice table shows which read least reliably.
- English is trained only so that English words inside Swedish text sound right. English-only text was not evaluated.
- Finland Swedish is not covered.
Licence and attribution
The model is released under Apache-2.0, as is the base model.
Training data: NST Swedish, CC0-1.0; RixVox-v2, ODC-BY-1.0; LibriVox Swedish audiobooks, CC0-1.0; FLEURS sv_se, train and dev splits, CC-BY-4.0; LibriTTS-R train-clean-100, CC-BY-4.0.
Contains information from the dataset RixVox-v2 (https://huggingface.co/datasets/KBLab/rixvox-v2), made available under the ODC Attribution License, sourced from the Swedish Parliament's open data. LibriTTS-R (2023, arXiv:2305.18802), derived from LibriTTS and LibriSpeech, CC-BY-4.0.