Ir para o conteúdo
ModelListadosExterno
Browse files

Plapre Onnx Web

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).

TipoOtherModelo basesyvai/plapre-nanoVersãoRevision 0320a33Cnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
1,41 MB–1,32 GB
Modelo base
syvai/plapre-nano
Versão
vRevision 0320a33
Atualizado
25 de set. de 2026
Downloads
1
Fonte
Hugging Face

Trecho da fonte

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).

Fontes

1 fonte
Hugging FacePrimárioVersão 0320a33b9f598db61c1c72d5f2df755f5cb08d5c
huggingface.co/elgehelge/plapre-onnx-web/tree/0320a33b9f598db61c1c72d5f2df755f5cb08d5c

Verificado 6 de set.

Download files

Artefatos de modelo

5 artefatos

clone_encoder.onnx

onnx · 166 MB · SHA-256 bc5f7408b1dc…6de0 · Hugging Face

Download file

hift_vocoder.onnx

onnx · 1,41 MB · SHA-256 59fcfc41a20d…5716 · Hugging Face

Download file

kanade_decoder.onnx

onnx · 1,60 MB · SHA-256 29dee6b908c8…e227 · Hugging Face

Download file

nano/lm/model.onnx

onnx · 1,32 GB · SHA-256 66b95163b7f2…7074 · Hugging Face

Download file

pico/lm/model.onnx

onnx · 498 MB · SHA-256 792fcf582de5…5cb8 · Hugging Face

Download file

Trechos de fonte

2 trechos

--- license: cc-by-4.0 language: - da pipeline_tag: text-to-speech base_model: - syvai/plapre-pico - syvai/plapre-nano tags: - onnx - onnxruntime-web - webgpu - text-to-speech - danish - in-browser --- # Plapre — ONNX weights for in-browser inference Converted **ONNX** artifacts for running [**Plapre**](https://huggingface.co/syvai/plapre-pico), an open-source Danish text-to-speech model, **fully in the browser** on [`onnxruntime-web`](https://onnxruntime.ai/docs/tutorials/web/) (WebGPU, with a WASM fallback). These files are consumed by the [**plapre-in-a-browser**](https://github.com/elgehelge/plapre-in-a-browser) library and its [live demo](https://elgehelge.github.io/plapre-in-a-browser/). They are a format conversion (PyTorch → ONNX) of the upstream model — no retraining — verified to reproduce the PyTorch reference to float precision. ## Files `<variant>` is `pico` or `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`) | ### Model variants The repo hosts both Plapre sizes. The LM-side files above are variant-specific and live under each variant's directory: **Pico** (hidden 576) under `pico/` and **Nano** (hidden 960) under `nano/` (e.g. `pico/lm/model.onnx`, `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" })`. ## Usage ```ts 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", }); ``` ## License & attribution Di...

Source context: 1 downloads · 0 likes · Pipeline text-to-speech · Repo elgehelge/plapre-onnx-web