Instructions to use empiriolabsai/canora-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use empiriolabsai/canora-german with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-to-speech', 'empiriolabsai/canora-german');
Website · All models · Platform · Discord
Canora German
Canora German is a German text-to-speech (TTS) model with two voices, lena (female) and jonas (male). It has 82 million parameters, the size and speed of Kokoro-82M, and loads in the standard kokoro Python package. ONNX weights in full precision, half precision and int8 are included for ONNX Runtime and transformers.js.
Auf Deutsch: Canora German ist ein deutsches Text-to-Speech-Modell (TTS) mit einer Frauen- und einer Männerstimme, frei nutzbar unter der Apache-2.0-Lizenz, auch kommerziell.
Highlights
- Two voices:
lena(female) andjonas(male). - Numbers, dates, times and prices are read the way a German speaker says them.
- More intelligible than every Piper voice we tested: lower word error rate on 200 held-out sentences.
- As intelligible as Thorsten-Voice/Kokoro: word error rate 3.3 to 4.0% against 3.8%.
- Higher naturalness score than every Piper voice and Thorsten-Voice/Kokoro we tested (UTMOS).
- Sounds native:
openai/whisper-large-v3identifies every voice as German with a mean probability of 0.99 or more, as high as the native voices it was compared with. - Small and light: 82 million parameters, the size and speed of Kokoro-82M; the int8 ONNX file is 115 MB.
- Standard package: stock
kokoro, plus a one-file text-to-phoneme module in this repository. - Apache 2.0: free for commercial use.
Samples
| Voice | Text | Audio |
|---|---|---|
lena (female) |
Guten Morgen! Heute wird es ein sonniger Tag mit Temperaturen um die 21 Grad. | |
lena (female) |
Der Zug nach Hamburg fährt um 14:35 Uhr von Gleis 5 ab. | |
lena (female) |
Eine Tasse Kaffee kostet hier 3,50 €, ein Keks ist inbegriffen. | |
jonas (male) |
Guten Morgen! Heute wird es ein sonniger Tag mit Temperaturen um die 21 Grad. | |
jonas (male) |
Der Zug nach Hamburg fährt um 14:35 Uhr von Gleis 5 ab. | |
jonas (male) |
Eine Tasse Kaffee kostet hier 3,50 €, ein Keks ist inbegriffen. |
More samples (ten per voice) are in the samples folder.
Results

Measured by EmpirioLabs on 2026-11-21 on 200 German sentences the model never saw. Every system read the same sentences; openai/whisper-large-v3 transcribed each clip and the transcript was compared with the text (WER: word error rate, lower is better). UTMOS is an automatic estimate of naturalness on a 1 to 5 scale (higher is better). Bold marks the best score in a column.
| System | WER | UTMOS |
|---|---|---|
Canora German lena |
4.03% | 4.16 |
Canora German jonas |
3.32% | 4.16 |
Thorsten-Voice/Kokoro |
3.78% | 3.57 |
Piper de_DE-pavoque-low |
5.04% | 3.66 |
Piper de_DE-thorsten-medium |
5.04% | 3.38 |
Piper de_DE-kerstin-low |
5.99% | 3.53 |
Piper de_DE-thorsten-high |
6.29% | 3.24 |
Piper de_DE-kerstin-medium |
6.34% | 3.61 |
Piper de_DE-thorsten-low |
6.65% | 3.31 |
Piper de_DE-eva_k-x_low |
7.05% | 3.29 |
Piper de_DE-karlsson-low |
7.65% | 3.56 |
Piper de_DE-mls-medium |
15.96% | 2.68 |
Piper de_DE-ramona-low |
18.58% | 2.56 |
Language ID, the mean probability openai/whisper-large-v3 gives German on the same clips: lena 1.00, jonas 0.99; the other voices 0.98 to 1.00.
Thorsten-Voice/Kokoro is another Kokoro-82M German model, run exactly as its card describes.
The int8 ONNX file measures lena 4.18% WER and UTMOS 3.46, jonas 3.37% WER and UTMOS 3.74 on the same sentences.
Speed, 60 sentences on 4 threads of an AMD EPYC 7513 32-Core Processor (audio seconds per second of computation): PyTorch 3.3x real time, ONNX full precision 3.8x, ONNX int8 4.6x. Speed depends on the processor and the number of threads; the architecture is Kokoro-82M's, so it matches Kokoro-82M on the same machine.
Quickstart
Install the packages and the espeak-ng program, which the text-to-phoneme module calls (apt install espeak-ng, brew install espeak-ng, or the Windows installer from the espeak-ng releases).
pip install kokoro soundfile huggingface_hub
import importlib, sys
from pathlib import Path
import soundfile as sf
import torch
from huggingface_hub import hf_hub_download
from kokoro import KModel
REPO = "empiriolabsai/canora-german"
sys.path.insert(0, str(Path(hf_hub_download(REPO, "g2p_de.py")).parent))
g2p = importlib.import_module("g2p_de").GermanG2P()
model = KModel(repo_id=REPO, config=hf_hub_download(REPO, "config.json"),
model=hf_hub_download(REPO, "canora-german.pth")).eval()
voice = torch.load(hf_hub_download(REPO, "voices/lena.pt"), weights_only=True)
phonemes, _ = g2p("Der Zug nach Hamburg fährt um 14:35 Uhr von Gleis 5 ab.")
with torch.no_grad():
audio = model(phonemes, voice[len(phonemes) - 1], 1.0)
sf.write("speech.wav", audio.numpy(), 24000)
The third argument of model(...) is the speed (1.0 is normal). Keep one call to about 500 phonemes; split longer text into sentences and join the audio.
ONNX Runtime
Continuing the example above, the same phonemes and voice run on ONNX Runtime (pip install onnxruntime):
import json
import numpy as np
import onnxruntime as ort
vocab = json.load(open(hf_hub_download(REPO, "config.json")))["vocab"]
session = ort.InferenceSession(hf_hub_download(REPO, "onnx/model.onnx"))
ids = [0] + [vocab[p] for p in phonemes if p in vocab] + [0]
audio = session.run(None, {
"input_ids": np.array([ids], dtype=np.int64),
"style": voice[len(phonemes) - 1].numpy(),
"speed": np.ones(1, dtype=np.float32),
})[0].reshape(-1)
onnx/model.onnx is full precision, onnx/model_fp16.onnx half precision and onnx/model_quantized.onnx int8, the smallest (its scores are in Results). In JavaScript, transformers.js loads the same files as StyleTextToSpeech2Model and takes the same inputs: phoneme ids from config.json and one row of voices/<name>.bin (raw float32, [510, 256]). The text-to-phoneme module itself is Python.
Voices
| Voice | Description |
|---|---|
lena |
A clear, warm adult female voice, calm and even. |
jonas |
A clear, warm adult male voice, medium-low and calm. |
The voices are designed voices, not recordings or imitations of a real person.
Intended use
Reading German text aloud in applications, accessibility tools, voice assistants, audiobooks and prototypes, on a server, a laptop or in the browser.
Limitations
- German only. Words from other languages are read with German pronunciation.
- One speaking style per voice, with no emotion or emphasis control; the same text always gives the same audio.
- Pronunciation follows the text-to-phoneme module, which relies on
espeak-ng; rare names and loanwords can be mispronounced. - Scores above come from automatic measures (speech recognition and UTMOS), not from listening tests.
- Do not use it to impersonate a person or to mislead listeners about whether speech is synthetic.
Other languages
Canora text-to-speech in other languages: Dutch, French, Korean, Norwegian, Polish, Russian, Spanish, Turkish. They are listed together in the Canora text-to-speech collection.
About EmpirioLabs AI
EmpirioLabs AI builds AI models, from decision models to open text-to-speech and classifier models, and offers specialized AI model hosting for open, proprietary, and custom stacks, with GPU Cloud instances and hosted AI agents on the same platform. Website · Platform · Docs
License
Apache 2.0. The weights and code in this repository may be used commercially. See LICENSE and NOTICE.
- Downloads last month
- 43