Saltar al contenido
ModelPublicadoExterno
Browse files

Kokoro 82M v1.0 ONNX

Kokoro is a frontier TTS model for its size of 82 million parameters (text in/audio out).

TipoOtherModelo basehexgrad/Kokoro-82MVersiónRevision a474f98Bcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
510 KB–310 MB
Modelo base
hexgrad/Kokoro-82M
Versión
vRevision a474f98
Actualizado
25 sept 2026
Descargas
362
Fuente
Hugging Face

Extracto de la fuente

Kokoro is a frontier TTS model for its size of 82 million parameters (text in/audio out).

Fuentes

1 fuente
Hugging FacePrincipalVersión a474f9847ffecccb177e6f36820df627debda4cf
huggingface.co/synath/Kokoro-82M-v1.0-ONNX/tree/a474f9847ffecccb177e6f36820df627debda4cf

Verificado 6 sept

Download files

Artefactos del modelo

63 artefactos

onnx/model_fp16.onnx

onnx · 156 MB · SHA-256 ba4527a874b4…334a · Hugging Face

Download file

onnx/model_q4.onnx

onnx · 291 MB · SHA-256 04cf570cf9c4…97c7 · Hugging Face

Download file

onnx/model_q4f16.onnx

onnx · 147 MB · SHA-256 d1a508a6a296…f45f · Hugging Face

Download file

onnx/model_q8f16.onnx

onnx · 82,0 MB · SHA-256 04c658aec1b6…3cd0 · Hugging Face

Download file

onnx/model_quantized.onnx

onnx · 88,1 MB · SHA-256 fbae9257e1e0…1478 · Hugging Face

Download file

onnx/model_uint8.onnx

onnx · 169 MB · SHA-256 6607a397d77b…5aea · Hugging Face

Download file

onnx/model_uint8f16.onnx

onnx · 109 MB · SHA-256 883333e03c59…4a9a · Hugging Face

Download file

onnx/model.onnx

onnx · 310 MB · SHA-256 8fbea51ea711…34cb · Hugging Face

Download file

voices/af_alloy.bin

bin · 510 KB · SHA-256 c4a6b876047f…8c45 · Hugging Face

Download file

voices/af_aoede.bin

bin · 510 KB · SHA-256 4a004c334307…8361 · Hugging Face

Download file

voices/af_bella.bin

bin · 510 KB · SHA-256 f69d836209b7…5c8b · Hugging Face

Download file

voices/af_heart.bin

bin · 510 KB · SHA-256 d583ccff3cdc…8f0b · Hugging Face

Download file

voices/af_jessica.bin

bin · 510 KB · SHA-256 a240a5e3c15b…3bd8 · Hugging Face

Download file

voices/af_kore.bin

bin · 510 KB · SHA-256 9be5221b6a94…819e · Hugging Face

Download file

voices/af_nicole.bin

bin · 510 KB · SHA-256 cd2191ab31b9…f59a · Hugging Face

Download file

voices/af_nova.bin

bin · 510 KB · SHA-256 18778272caa0…414f · Hugging Face

Download file

voices/af_river.bin

bin · 510 KB · SHA-256 00a2bcf82b1d…9c30 · Hugging Face

Download file

voices/af_sarah.bin

bin · 510 KB · SHA-256 4409fbc125af…2f0a · Hugging Face

Download file

voices/af_sky.bin

bin · 510 KB · SHA-256 4435255c9744…f0b9 · Hugging Face

Download file

voices/af.bin

bin · 512 KB · SHA-256 a4f11d9d055a…e41a · Hugging Face

Download file

voices/am_adam.bin

bin · 510 KB · SHA-256 162b035ed91c…5716 · Hugging Face

Download file

voices/am_echo.bin

bin · 510 KB · SHA-256 3968b92c3c4c…f3c3 · Hugging Face

Download file

voices/am_eric.bin

bin · 510 KB · SHA-256 e8b5be17edd1…2832 · Hugging Face

Download file

voices/am_fenrir.bin

bin · 510 KB · SHA-256 c27989f741f7…df43 · Hugging Face

Download file

voices/am_liam.bin

bin · 510 KB · SHA-256 52403be32fd0…1ade · Hugging Face

Download file

voices/am_michael.bin

bin · 510 KB · SHA-256 1d1f21dd8da3…5ba1 · Hugging Face

Download file

voices/am_onyx.bin

bin · 510 KB · SHA-256 da5d135b4241…45e6 · Hugging Face

Download file

voices/am_puck.bin

bin · 510 KB · SHA-256 fcf73c989033…74a0 · Hugging Face

Download file

voices/am_santa.bin

bin · 510 KB · SHA-256 61150cf726ab…227a · Hugging Face

Download file

voices/bf_alice.bin

bin · 510 KB · SHA-256 08afa6ba24da…5573 · Hugging Face

Download file

voices/bf_emma.bin

bin · 510 KB · SHA-256 669fe0647f9d…3b73 · Hugging Face

Download file

voices/bf_isabella.bin

bin · 510 KB · SHA-256 3754352c4aaa…e94f · Hugging Face

Download file

voices/bf_lily.bin

bin · 510 KB · SHA-256 5e0ee32ebe64…a335 · Hugging Face

Download file

voices/bm_daniel.bin

bin · 510 KB · SHA-256 6b3194bbceff…a1e8 · Hugging Face

Download file

voices/bm_fable.bin

bin · 510 KB · SHA-256 f88908319680…98f1 · Hugging Face

Download file

voices/bm_george.bin

bin · 510 KB · SHA-256 c4b235a4c1f2…c9bc · Hugging Face

Download file

voices/bm_lewis.bin

bin · 510 KB · SHA-256 b8f671cef828…db97 · Hugging Face

Download file

voices/ef_dora.bin

bin · 510 KB · SHA-256 f66ec66bd295…a532 · Hugging Face

Download file

voices/em_alex.bin

bin · 510 KB · SHA-256 27809e9eafdc…3e95 · Hugging Face

Download file

voices/em_santa.bin

bin · 510 KB · SHA-256 ad43b774e1ca…3683 · Hugging Face

Download file

voices/ff_siwis.bin

bin · 510 KB · SHA-256 a35f5675ad08…4861 · Hugging Face

Download file

voices/hf_alpha.bin

bin · 510 KB · SHA-256 040be6a44254…fb56 · Hugging Face

Download file

voices/hf_beta.bin

bin · 510 KB · SHA-256 cd83ae0bb9b2…7cc7 · Hugging Face

Download file

voices/hm_omega.bin

bin · 510 KB · SHA-256 b02d9222d9ed…4137 · Hugging Face

Download file

voices/hm_psi.bin

bin · 510 KB · SHA-256 644daf88ba8a…3f37 · Hugging Face

Download file

voices/if_sara.bin

bin · 510 KB · SHA-256 409b69248798…265c · Hugging Face

Download file

voices/im_nicola.bin

bin · 510 KB · SHA-256 bc578e510d52…1ab0 · Hugging Face

Download file

voices/jf_alpha.bin

bin · 510 KB · SHA-256 56b479360aad…8bb6 · Hugging Face

Download file

voices/jf_gongitsune.bin

bin · 510 KB · SHA-256 0f1181f3772d…f396 · Hugging Face

Download file

voices/jf_nezumi.bin

bin · 510 KB · SHA-256 13cb71eebb0b…026b · Hugging Face

Download file

voices/jf_tebukuro.bin

bin · 510 KB · SHA-256 29c6c0561b42…6696 · Hugging Face

Download file

voices/jm_kumo.bin

bin · 510 KB · SHA-256 09e959d23972…e64f · Hugging Face

Download file

voices/pf_dora.bin

bin · 510 KB · SHA-256 3da7b5b2d918…e9ee · Hugging Face

Download file

voices/pm_alex.bin

bin · 510 KB · SHA-256 0175c753f59c…eb2a · Hugging Face

Download file

voices/pm_santa.bin

bin · 510 KB · SHA-256 8b012db31857…eede · Hugging Face

Download file

voices/zf_xiaobei.bin

bin · 510 KB · SHA-256 5dde6e1c9c4f…e640 · Hugging Face

Download file

voices/zf_xiaoni.bin

bin · 510 KB · SHA-256 08892b62a39a…9cba · Hugging Face

Download file

voices/zf_xiaoxiao.bin

bin · 510 KB · SHA-256 03adb5d5e3dd…1169 · Hugging Face

Download file

voices/zf_xiaoyi.bin

bin · 510 KB · SHA-256 bc1555c5c486…36b3 · Hugging Face

Download file

voices/zm_yunjian.bin

bin · 510 KB · SHA-256 de48a00bdbf3…d6fa · Hugging Face

Download file

voices/zm_yunxi.bin

bin · 510 KB · SHA-256 7243892fb4e5…7c8b · Hugging Face

Download file

voices/zm_yunxia.bin

bin · 510 KB · SHA-256 6b2b8fc15b3d…936d · Hugging Face

Download file

voices/zm_yunyang.bin

bin · 510 KB · SHA-256 261e2c894705…3f42 · Hugging Face

Download file

Extractos de fuentes

2 extractos

--- license: apache-2.0 library_name: transformers.js language: - en base_model: - hexgrad/Kokoro-82M pipeline_tag: text-to-speech --- # Kokoro TTS Kokoro is a frontier TTS model for its size of 82 million parameters (text in/audio out). ## Table of contents - [Usage](#usage) - [JavaScript](#javascript) - [Python](#python) - [Voices/Samples](#voicessamples) - [Quantizations](#quantizations) ## Usage ### JavaScript First, install the `kokoro-js` library from [NPM](https://npmjs.com/package/kokoro-js) using: ```bash npm i kokoro-js ``` You can then generate speech as follows: ```js import { KokoroTTS } from "kokoro-js"; const model_id = "onnx-community/Kokoro-82M-ONNX"; const tts = await KokoroTTS.from_pretrained(model_id, { dtype: "q8", // Options: "fp32", "fp16", "q8", "q4", "q4f16" }); const text = "Life is like a box of chocolates. You never know what you're gonna get."; const audio = await tts.generate(text, { // Use `tts.list_voices()` to list all available voices voice: "af_bella", }); audio.save("audio.wav"); ``` ### Python ```python import os import numpy as np from onnxruntime import InferenceSession # You can generate token ids as follows: # 1. Convert input text to phonemes using https://github.com/hexgrad/misaki # 2. Map phonemes to ids using https://huggingface.co/hexgrad/Kokoro-82M/blob/785407d1adfa7ae8fbef8ffd85f34ca127da3039/config.json#L34-L148 tokens = [50, 157, 43, 135, 16, 53, 135, 46, 16, 43, 102, 16, 56, 156, 57, 135, 6, 16, 102, 62, 61, 16, 70, 56, 16, 138, 56, 156, 72, 56, 61, 85, 123, 83, 44, 83, 54, 16, 53, 65, 156, 86, 61, 62, 131, 83, 56, 4, 16, 54, 156, 43, 102, 53, 16, 156, 72, 61, 53, 102, 112, 16, 70, 56, 16, 138, 56, 44, 156, 76, 158, 123, 56, 16, 62, 131, 156, 43, 102, 54, 46, 16, 102, 48, 16, 81, 47, 102, 54, 16, 54, 156, 51, 158, 46, 16, 70, 16, 92, 156, 135, 46, 16, 54, 156, 43, 102, 48, 4, 16, 81, 47, 102, 16, 50, 156, 72, 64, 83, 56, 62, 16, 156, 51, 158, 64, 83, 56, 16, 44, 157, 102, 56, 16, 44, 156, 76, 158, 123, 56, 4] # Context length is 512, but leave room for the pad token 0 at the start & end assert len(tokens) <= 510, len(tokens) # Style vector based on len(tokens), ref_s has shape (1, 256) voices = np.fromfile('./voices/af.bin', dtype=np.float32).reshape(-1, 1, 256) ref_s = voices[len(tokens)] # Add the pad ids, and reshape tokens, should now have shape (1, <=512) tokens = [[0, *tokens,...

Source context: 362 downloads · 1 likes · Pipeline text-to-speech · Library transformers.js · Repo synath/Kokoro-82M-v1.0-ONNX