kokoro-82m on Tenstorrent p150
Derived from hexgrad's Kokoro-82M v1.0 (architecture: Li et al., StyleTTS 2 with an iSTFTNet vocoder), with unmodified weights and voice packs downloaded from hexgrad's repository; text to phonemes with hexgrad's misaki. Official code: hexgrad/kokoro. This is a third-party port, not affiliated with or endorsed by hexgrad. See the original model card for training details.
Kokoro-82M turns text into 24 kHz speech with 54 voices in 9 languages (American and British English, Spanish, French, Hindi, Italian, Brazilian Portuguese, Japanese, Mandarin Chinese). The text is converted to phonemes on the host (misaki, as in the official package), split into chunks of at most 510 phonemes (or per sentence when streaming), and each chunk is synthesized in one pass: an ALBERT phoneme encoder, a duration predictor (bidirectional LSTMs), pitch and energy contours, a style-conditioned decoder and an iSTFTNet vocoder with a harmonic-plus-noise source. Voices can be blended per request, speed is adjustable, and English requests can return word timestamps. On the device the six bidirectional LSTM recurrences run as a persistent megakernel (MK-RNN: 16 cores, recurrent weights resident in L1, the hidden state exchanged by NoC multicast every step), every AdaIN + snake / LeakyReLU of the prosody, decoder and vocoder networks is one fused kernel (MK-NORM), and ALBERT, the convolutions and the projections run in tt-nn operations; each chunk replays four traces captured at start-up (text side per token bucket, prosody / decoder / vocoder per frame bucket). G2P, the harmonic-plus-noise excitation with its STFT (overlapped with the decoder on the device) and the inverse STFT run on the host CPU.
Runs on Tenstorrent p150 — see the serving profiles below.
Packaged and published with tt-model-manager 0.1.0 (manifest schema 5.1).
At a glance
| Hardware | p150 |
| License | apache-2.0 |
Intended use
Low-latency speech synthesis on one Tenstorrent p150: voice interfaces, reading text aloud, accessibility, one stream at a time, with an OpenAI-compatible speech endpoint.
Prerequisites
- The Tenstorrent CLI,
tt:uv tool install tenstorrent(or use tt-model alone, see the Quickstart) - Docker
- Tenstorrent hardware: p150
- About 0.4 GB of free disk for the weights and the 54 voice packs (fetched once into the Hugging Face cache), plus the container image
- Time for the first start: it compiles about 6,000 device kernel binaries into the tt-model cache, which took
33 minutes on a busy 8-core host (load average ~20); allow a readiness timeout of that order. Later starts reuse
the cache: about 90 s for the default profile (the
ttnnprofile: about 10 minutes, its warm-up runs the LSTMs of every frame bucket on the host CPU)
Quickstart
tt serve changh95/Kokoro-82M
tt serve downloads the Docker image and the hexgrad/Kokoro-82M at f3ff3571791e39611d31c381e3a41a3af07b4987 weights (into your HF cache; they are not in the image), then starts the model's own HTTP server on port 20000 (or the next free port, if that one is busy). The first start compiles kernels for your device, which takes several minutes; the server is ready when it logs Application startup complete.
Without tt-cli: tt-model serve changh95/Kokoro-82M.
curl -s localhost:20000/v1/audio/speech -H 'Content-Type: application/json' \
-d '{"input": "Hello from a Tenstorrent p150.", "voice": "af_heart", "response_format": "wav"}' -o hello.wav
# streamed per sentence: play while the rest is synthesized
curl -sN localhost:20000/tts -H 'Content-Type: application/json' \
-d '{"text": "First sentence. Second sentence.", "voice": "bf_emma", "response_format": "pcm", "stream": true}' \
| ffplay -autoexit -nodisp -f s16le -ar 24000 -ch_layout mono -
Serving profiles
Select a different serving profile using --profile.
| profile | hardware | mesh | description |
|---|---|---|---|
default (default) |
p150 | P150 | megakernel engines: MK-RNN recurrences, MK-NORM AdaIN, four traces per chunk (lowest latency) |
ttnn |
p150 | P150 | tt-nn baseline engines (A/B reference): recurrences on the host CPU |
cpu |
p150 | P150 | the clean-room fp32 reference on the host CPU (no device work; slow): A/B and fallback |
Capabilities
This package exposes the model's own HTTP server on port 20000, not an OpenAI-compatible chat API — its request and response shapes are the model's own. See the author's notes for the payload it expects.
POST /v1/audio/speech is OpenAI-compatible (model, input, voice, response_format, speed,
stream_format) and also takes the native fields; POST /tts is the native route; GET /voices lists the 54
voices; GET /health, GET /info (engines, configuration, device, limits, defaults) and GET /v1/models.
| request field | default | meaning |
|---|---|---|
text (input) / phonemes |
required | text (up to 20,000 characters, KOKORO_MAX_CHARS), or raw phonemes (<= 510 per line) |
voice |
af_heart |
a voice id (GET /voices), an equal blend af_bella,af_sky, or a weighted blend af_bella:0.7,af_sky:0.3 (up to 8) |
lang |
the voice id's first letter | a (en-us), b (en-gb), e (es), f (fr-fr), h (hi), i (it), p (pt-br), j (ja), z (zh) |
speed |
1.0 | 0.25 - 4.0 |
seed, noise |
random, philox |
the vocoder's noise: same seed = same audio; noise: torch replays the official PyTorch random stream for torch.manual_seed(seed) |
chunking, split_pattern |
official (sentence when streaming), \n+ |
how the text is split into synthesis chunks |
response_format, sample_rate |
wav, 24000 |
wav, pcm, f32, flac; 8000, 11025, 16000, 22050, 24000, 32000, 44100 or 48000 (other rates answer 400) |
stream (stream_format: sse) |
false | one HTTP chunk per synthesized text chunk |
timestamps, durations, json (/tts) |
false | English word timestamps, per-phoneme durations, a JSON body (NDJSON when streaming) |
Example output
Generated by this package's container on a p150 (default profile), one POST /tts request per clip with
seed: 7 and otherwise the defaults; media/demos.json has every exact request, the response
headers, the files' sha256 and a speech-recognition transcript of each clip.
| demo | voice, language | text |
|---|---|---|
| WAV | af_heart, English (US) |
Kokoro is a text to speech model with only eighty-two million parameters. Every word you hear was synthesized on a single Tenstorrent Blackhole card. |
| WAV | bm_george, English (UK) |
Good afternoon. The weather in London is rather grey today, so it is a fine time for a cup of tea and a good book. |
| WAV | ef_dora, Spanish |
Hola, me llamo Dora. Esta voz se genera en una tarjeta aceleradora, mucho más rápido que en tiempo real. |
| WAV | ff_siwis, French |
Bonjour à tous. Aujourd'hui, nous allons découvrir comment une petite carte peut lire un texte à voix haute. |
| WAV | hf_alpha, Hindi |
नमस्ते, मेरा नाम अल्फ़ा है। आज मौसम बहुत अच्छा है, चलिए थोड़ा घूमने चलते हैं। |
| WAV | jf_alpha, Japanese |
こんにちは。今日はとても良い天気ですね。少し散歩に出かけましょう。 |
| WAV | zf_xiaobei, Mandarin Chinese |
你好,欢迎收听。今天我们用一张加速卡,把文字变成声音。 |
| WAV | blend af_bella:0.7,am_michael:0.3, speed: 1.1, English (US) |
Voices can also be blended per request: this one is seventy percent Bella and thirty percent Michael, spoken a little faster than usual. |
Server time per clip (X-Timing-Ms total, text-to-phoneme conversion included): 132-257 ms for 5.8-9.8 s of
audio (real-time factor 0.021-0.037), 137-273 ms client round trip on loopback. A speech recognizer
(Qwen3-ASR-1.7B, float32 on the CPU, language given) transcribes the British English, Spanish, French, Japanese
and Chinese clips exactly; the other three differ only where it writes numbers as digits ("82", "70%", "30%"),
hears the names Kokoro and Tenstorrent as "Kakarot" and "TensorRT", or drops the nukta of "अल्फ़ा".
Expected performance
One Blackhole p150 (ETH dispatch, 120 Tensix cores), batch 1, warm, default profile; host times measured on a shared, heavily loaded 8-core host. One chunk = one synthesis pass (golden phonemes, the model's own durations):
| input | audio | p150 (default) |
p150 (ttnn baseline) |
official kokoro, CPU fp32 (2 threads) |
|---|---|---|---|---|
| 15 phonemes | 1.7 s | 73 ms (RTF 0.044) | 354 ms | 1.11 s |
| 60 phonemes | 4.0 s | 119 ms (RTF 0.030) | 415 ms | 2.94 s |
| 184 phonemes | 11.7 s | 226 ms (RTF 0.019) | 796 ms | 8.55 s |
| 417 phonemes | 25.1 s | 438 ms (RTF 0.018) | -- | -- |
Streamed request of three sentences (stream: true, G2P included): first audio after 121 ms
(ttnn: 421 ms), the whole 11.6 s of audio after 343 ms. Of the 119 ms of a 4 s chunk, 74 ms are device time
(text side 6, prosody 4, decoder 4, vocoder 60); the rest is host work (style constants, harmonic source,
inverse STFT). Start-up with a warm kernel cache: the server is ready in 90-125 s (two warm-up passes
over 5 token and 6 frame buckets, 23 trace captures, the 9 G2P back ends). The very first start of the image
compiles about 6,000 kernel binaries into the tt-model cache: 33 minutes measured on a busy 8-core host (load
average ~20); every later start reuses them. The ttnn profile needs about 10 minutes to start (573 s measured
on its first start; its warm-up runs the LSTMs of every frame bucket on the host CPU).
Accuracy against fp32 references (16 cases, 9 languages, 17 chunks): see Limitations. Replaying a request with the same seed gives bit-identical audio (20 / 20).
Limitations
- Each chunk (at most 510 phonemes, or one sentence when streaming) is synthesized as a whole: audio streams per chunk, not per frame (every normalization in the network spans the whole chunk). Very short chunks (under ~20 phonemes) sound weaker, as in the official model.
- Batch 1: requests are served one at a time; up to
KOKORO_QUEUE_DEPTHwait, more are refused with 429. - MP3, Opus and AAC output are not available. Voices other than the 54 shipped packs (voice cloning) are not supported. Japanese and Chinese G2P follow the official package (no inline pronunciation overrides).
- Precision: bf16 weights and activations with fp32 statistics, residual streams and LSTM cell states; the audio is not bit-identical to the official fp32 PyTorch model. Against fp32 references of 16 test cases in 9 languages (17 chunks), with the official durations forced: pitch-contour PCC 0.99969-0.999997, log-mel distance 0.89-1.74 dB (official model in bf16: 0.60-1.69 dB); free-running durations within one frame for every phoneme (99.0 % identical); speech-recognition transcripts (Qwen3-ASR-1.7B) identical to those of the official audio in all 16 cases.
- Chunks longer than 2048 frames (about 51 s of audio in one chunk, e.g. 510 phonemes at speed < 0.55) run on the host CPU reference: correct, but at about real time (74-88 s for a 56 s chunk, measured on a loaded 8-core host).
Licensing
- Weights and voice packs (not redistributed here;
tt servedownloads them from hexgrad's repository atf3ff3571): Apache-2.0, hexgrad/Kokoro-82M. The model's training data includes CC BY audio credited on its card: Koniwatnc(CC BY 3.0; voicesjf_gongitsune,jf_nezumi,jf_tebukuro,jm_kumo) and SIWIS (CC BY 4.0; voiceff_siwis). - The container image contains GPL-3.0 components: eSpeak NG 1.52.0
(GPL-3.0-or-later; a shared library and its data inside the
espeakng-loaderpackage, loaded at run time for Spanish, French, Hindi, Italian, Brazilian Portuguese and English out-of-vocabulary words) and phonemizer-fork 3.3.2 (GPL-3.0-or-later; a Python library imported by misaki). Their licence texts are incode/tt_kokoro/licenses/(ESPEAK-NG-COPYING.txt,ESPEAK-NG-COPYING.UCD.txt), and the exact upstream source release of every GPL / LGPL component is listed inTHIRD_PARTY.md(the source offer). - The rest of the text-to-phoneme and audio stack in the image, installed unmodified:
misaki (Apache-2.0), spaCy and
en_core_web_sm(MIT), num2words (LGPL-2.1), fugashi (MIT) with unidic-lite (UniDic, used under BSD-3-Clause), jieba, pypinyin, cn2an (MIT), pyopenjtalk (MIT; its wheel also carries the HTS voice "Mei", Copyright 2009-2013 Nagoya Institute of Technology, CC BY 3.0, unused here), soxr with libsoxr (LGPL-2.1-or-later), soundfile with libsndfile (LGPL-2.1), tqdm (MPL-2.0 and MIT), certifi (MPL-2.0); every version, licence and source incode/tt_kokoro/licenses/THIRD_PARTY.md. - Port, server and scripts (
code/) and the tt-metal patches inpatches/: Apache-2.0 (code/tt_kokoro/licenses/NOTICE.md). The model code is a clean-room implementation of the official graph (no code of thekokoropackage). - Demo audio in
media/: generated by this package from the Kokoro-82M weights and voice packs (seven preset voices and one blend) from texts written for the demo, Apache-2.0; attributions inmedia/ATTRIBUTION.md.
Related packages
- changh95/DepthPro2: Apple Depth Pro 2 (monocular metric depth) on p150.
- changh95/all-MiniLM-L6-v2: sentence embeddings on p150.
Feedback
Questions or problems with this package: open a discussion at https://huggingface.co/changh95/Kokoro-82M/discussions — that is what reaches its author. A problem with the tt tooling itself: tt report issue (collects your environment and opens a prefilled issue against tenstorrent/tt-cli). Product feedback: support@tenstorrent.com.
Provenance
The exact sources the image was built from — code/ in this repo is byte-identical to the model code inside the image:
| component | built from |
|---|---|
| tt-metal | 44d66500520fda9f2c7060c0f6b41ec48f7ab37e (dirty tree — the image includes uncommitted changes) |
code/ digest |
7fb222c4865d68a0 (sha256, first 16 hex digits) |
| built | 2026-12-01T11:09:38+00:00 by tt-model 0.1.0 |