Instructions to use empiriolabsai/canora-polish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use empiriolabsai/canora-polish with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-to-speech', 'empiriolabsai/canora-polish');
Website · All models · Platform · Discord
Canora Polish
Canora Polish is a Polish text-to-speech (TTS) model with two voices, zofia (female) and jakub (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.
Po polsku: Canora Polish to polski model syntezy mowy (TTS) z głosem kobiecym i męskim, dostępny na licencji Apache 2.0, także do zastosowań komercyjnych.
Highlights
- Two voices:
zofia(female) andjakub(male). - Numbers, dates, times and prices are read the way a Polish speaker says them.
- Higher naturalness score than every Piper voice we tested (UTMOS).
- 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 |
|---|---|---|
zofia (female) |
Dzień dobry! Dzisiaj będzie słonecznie, a temperatura wyniesie około 21 °C. | |
zofia (female) |
Pociąg do Krakowa odjeżdża o 14:35 z peronu 5. | |
zofia (female) |
Filiżanka kawy kosztuje tutaj 12,50 zł. | |
jakub (male) |
Dzień dobry! Dzisiaj będzie słonecznie, a temperatura wyniesie około 21 °C. | |
jakub (male) |
Pociąg do Krakowa odjeżdża o 14:35 z peronu 5. | |
jakub (male) |
Filiżanka kawy kosztuje tutaj 12,50 zł. |
More samples (ten per voice) are in the samples folder.
Results

Measured by EmpirioLabs on 2026-11-20 on 200 Polish 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 Polish zofia |
2.25% | 4.04 |
Canora Polish jakub |
1.15% | 4.10 |
Piper pl_PL-gosia-medium |
1.73% | 3.47 |
Piper pl_PL-darkman-medium |
2.51% | 3.40 |
Piper pl_PL-mc_speech-medium |
3.35% | 3.18 |
Piper pl_PL-bass-high |
7.79% | 2.33 |
Piper pl_PL-mls_6892-low |
12.76% | 2.67 |
The int8 ONNX file measures zofia 1.88% WER and UTMOS 3.55, jakub 1.31% WER and UTMOS 3.67 on the same sentences.
Speed, 60 sentences on 4 threads of an AMD EPYC 7452 32-Core Processor (audio seconds per second of computation): PyTorch 3.2x real time, ONNX full precision 3.7x, ONNX int8 3.5x. 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-polish"
sys.path.insert(0, str(Path(hf_hub_download(REPO, "g2p_pl.py")).parent))
g2p = importlib.import_module("g2p_pl").PolishG2P()
model = KModel(repo_id=REPO, config=hf_hub_download(REPO, "config.json"),
model=hf_hub_download(REPO, "canora-polish.pth")).eval()
voice = torch.load(hf_hub_download(REPO, "voices/zofia.pt"), weights_only=True)
phonemes, _ = g2p("Pociąg do Krakowa odjeżdża o 14:35 z peronu 5.")
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 |
|---|---|
zofia |
A clear, warm adult female voice, calm and even. |
jakub |
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 Polish text aloud in applications, accessibility tools, voice assistants, audiobooks and prototypes, on a server, a laptop or in the browser.
Limitations
- Polish only. Words from other languages are read with Polish 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, German, Korean, Norwegian, 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
- 54