Bonsai-27B-GGUF
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
Turns English text into spoken audio with Kokoro, an 82 million parameter text-to-speech model packaged as ONNX files for JavaScript and Python. For developers who want a small local voice in an app.
Kokoro-82M-v1.0-ONNX is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
npm i kokoro-js
Kokoro is a text-to-speech model with 82 million parameters. You give it English text and it returns audio. This repository holds the ONNX version of the model, so you can run it from JavaScript with transformers.js or from Python with onnxruntime.
The model card calls it a frontier model for its size.
It suits developers who want to add speech output to a web page, a Node app or a Python script without calling a hosted voice service.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Add a spoken voice to a Node or browser app | Read a notification aloud |
| Education | Course builders | Turn lesson text into audio files | Make a narrated study sheet |
| Accessibility | Interface designers | Read page text out loud for users | Voice a long article |
| Media | Content teams | Produce narration drafts from scripts | Save a short clip as a WAV file |
If you need voices in languages other than English, you can skip it, since the card lists English only.
The model runs wherever JavaScript with transformers.js or Python with onnxruntime runs, so Windows, macOS and Linux all work.
| Use case | Who | What they get back |
|---|---|---|
| Narration | Content teams | A WAV file with the spoken text |
| Voice in an app | Developers | Audio generated on the user's side |
| Voice choice | Designers | A named voice such as af_bella |
For JavaScript you need Node and the kokoro-js package from NPM. For Python you need onnxruntime, numpy and the downloaded model files.
npm i kokoro-js
You load the model once, then call generate with your text and a voice name. The result is an audio object you can save as a WAV file.
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");| Tool | What it does |
|---|---|
| KokoroTTS.from_pretrained | Loads the model with the data type you choose |
| tts.generate | Turns text into audio with a chosen voice |
| tts.list_voices | Lists the voices you can pick |
| audio.save | Writes the audio to a WAV file |
You pass a short sentence to the generate call with the voice af_bella and save the result as audio.wav. The file holds that sentence spoken aloud.
If you are new, copy the JavaScript snippet, run it once and play the WAV file it writes. Then change the sentence or the voice name and run it again.
If you know the field, the Python route works one step lower. You turn text into phonemes, map them to token ids, add pad ids at both ends and feed a style vector. The context length is 512 tokens.
The card offers several ONNX builds, such as full precision, fp16, quantized and 4-bit versions, so you can trade size against quality.
Turns English text into spoken audio with Kokoro, an 82 million parameter text-to-speech model packaged as ONNX files for JavaScript and Python. For developers who want a small local voice in an app.
Made by onnx-community on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Kokoro is a text-to-speech model with 82 million parameters. You give it English text and it returns audio. This repository holds the ONNX version of the model, so you can run it from JavaScript with transformers.js or from Python with onnxruntime.
The model card calls it a frontier model for its size.
Who it suits: It suits developers who want to add speech output to a web page, a Node app or a Python script without calling a hosted voice service.
Industry | Who uses it | How they use it | Example
Software | App developers | Add a spoken voice to a Node or browser app | Read a notification aloud
Education | Course builders | Turn lesson text into audio files | Make a narrated study sheet
Accessibility | Interface designers | Read page text out loud for users | Voice a long article
Media | Content teams | Produce narration drafts from scripts | Save a short clip as a WAV file
If you need voices in languages other than English, you can skip it, since the card lists English only.
Where to use it: The model runs wherever JavaScript with transformers.js or Python with onnxruntime runs, so Windows, macOS and Linux all work.
Use case | Who | What they get back
Narration | Content teams | A WAV file with the spoken text
Voice in an app | Developers | Audio generated on the user's side
Voice choice | Designers | A named voice such as af_bella
How to set it up: For JavaScript you need Node and the kokoro-js package from NPM. For Python you need onnxruntime, numpy and the downloaded model files.
npm i kokoro-js
How to use it: You load the model once, then call generate with your text and a voice name. The result is an audio object you can save as a WAV file.
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");
Tool | What it does
KokoroTTS.from_pretrained | Loads the model with the data type you choose
tts.generate | Turns text into audio with a chosen voice
tts.list_voices | Lists the voices you can pick
audio.save | Writes the audio to a WAV file
Example: You pass a short sentence to the generate call with the voice af_bella and save the result as audio.wav. The file holds that sentence spoken aloud.
For newcomers and experts: If you are new, copy the JavaScript snippet, run it once and play the WAV file it writes. Then change the sentence or the voice name and run it again.
If you know the field, the Python route works one step lower. You turn text into phonemes, map them to token ids, add pad ids at both ends and feed a style vector. The context length is 512 tokens.
Text goes in as English words
It becomes phonemes and token ids
The ONNX model runs with a voice
Audio comes out and is saved
Good to know: The card offers several ONNX builds, such as full precision, fp16, quantized and 4-bit versions, so you can trade size against quality.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download onnx-community/Kokoro-82M-v1.0-ONNX
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Kokoro-82M-v1.0-ONNX This page | 828,320 | 290 | — | apache-2.0 | |
| nomic-embed-text-v1.5Shares transformers.js · onnx | 11,809,681 | 994 | 137M | apache-2.0 | |
| SmolLM2-135M-InstructShares transformers.js · onnx | 841,106 | 474 | 135M | apache-2.0 | |
| Distil-Whisper distil-large-v3Shares transformers.js · onnx | 754,155 | 386 | 756M | mit | |
| SmolLM2-1.7B-InstructShares transformers.js · onnx | 267,519 | 772 | 1.7B | apache-2.0 | |
| SmolLM2-360M-InstructShares transformers.js · onnx | 221,273 | 244 | 362M | apache-2.0 |
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…
alpindale · Kit
Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…
prithivMLmods · Kit
Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…