Downloads · 30 days
0
0% of all-time downloads
elgehelge/plapre-onnx-web
plapre-onnx-web is a text-to-speech model from elgehelge. Use it when you need text read aloud. The card lists the license as cc-by-4.0.
Converted ONNX artifacts for running Plapre, an open-source Danish text-to-speech model, fully in the browser on onnxruntime-web (WebGPU, with a WASM fallback).
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
20
Public
Repo size
5.4 GB
Likes
1
Trending 1
Click a slice to open those files.
.onnx5 GB · 91%
From the Hugging Face model README
Converted ONNX artifacts for running Plapre,
an open-source Danish text-to-speech model, fully in the browser on
onnxruntime-web (WebGPU, with a
WASM fallback).
These files are consumed by the plapre-in-a-browser library and its live demo. They are a format conversion (PyTorch → ONNX) of the upstream model — no retraining — verified to reproduce the PyTorch reference to float precision.
<variant> is pico, nano, v2-nano, or v3-nano (see below); the Kanade files are shared.
| File | Stage | Notes |
|---|---|---|
<variant>/lm/model.onnx (+ meta.json) | Plapre language model | SmolLM2/LLaMA, autoregressive |
kanade_decoder.onnx (+ .onnx.data) | Kanade decoder | audio tokens + speaker emb → mel |
hift_vocoder.onnx (+ .onnx.data) | HiFT vocoder | mel → 24 kHz waveform |
clone_encoder.onnx | Kanade clone encoder | reference audio → 128-dim speaker embedding |
<variant>/tokenizer.json, config.json | tokenizer / config | BPE + special audio tokens |
<variant>/speakers.json, speaker_proj.json | built-in voices | precomputed embeddings (tor, ida, liv, ask, kaj) |
The repo hosts every supported Plapre variant. The LM-side files above are
variant-specific and live under each variant's directory: Plapre 1 Pico
(hidden 576) under pico/, Plapre 1 Nano (hidden 960) under nano/,
Plapre 2 Nano (hidden 960, retrained) under v2-nano/, and Plapre 3 Nano
(hidden 960, RL-tuned upstream for clearly better intelligibility) under
v3-nano/ (e.g. pico/lm/model.onnx, v3-nano/lm/model.onnx). The Kanade
kanade_decoder.*, hift_vocoder.*, and clone_encoder.onnx are shared across
variants and stay at the root. Select a variant with
loadPlapreEngine({ model: "pico" | "nano" | "v2-nano" | "v3-nano" }).
import { loadPlapreEngine } from "plapre-in-a-browser";
const engine = await loadPlapreEngine({
modelsBaseUrl: "https://huggingface.co/elgehelge/plapre-onnx-web/resolve/main",
});
const { samples, sampleRate } = await engine.synthesizeToPcm({
text: "Hej, hvordan har du det i dag?",
voice: "ida",
});
Distributed under CC BY 4.0 (the most restrictive of the upstream licenses). Each artifact derives from a permissively licensed work:
| Artifact | Upstream | License |
|---|---|---|
<variant>/lm/*, tokenizer.json, config.json, speakers.json, speaker_proj.json | Plapre Pico / Nano / Plapre 2 / Plapre 3 by syv.ai | CC BY 4.0 |
kanade_decoder.*, clone_encoder.onnx | Kanade (frothywater) | MIT |
hift_vocoder.* | HiFT, from CosyVoice 2 | Apache-2.0 |
| clone-encoder SSL frontend | WavLM (Microsoft) | MIT |
These are format conversions (PyTorch → ONNX), not retraining. If you redistribute these artifacts, keep this attribution and the MIT/Apache notices. Full notices: https://github.com/elgehelge/plapre-in-a-browser/blob/main/NOTICE