Views
No views yet
[!NOTE] As of April 2025, the market rate of Kokoro served over API is under $1 per million characters of text input, or under $0.06 per hour of audio output. (On average, 1000 characters of input is about 1 minute of output.) Sources: ArtificialAnalysis/Replicate at 65 cents per M chars and DeepInfra at 80 cents per M chars.This is an Apache-licensed model, and Kokoro has been deployed in numerous projects and commercial APIs. We welcome the deployment of the model in real use cases.
[!CAUTION] Fake websites like kokorottsai_com (snapshot: https://archive.ph/nRRnk) and kokorotts_net (snapshot: https://archive.ph/60opa) are likely scams masquerading under the banner of a popular model.Any website containing "kokoro" in its root domain (e.g. kokorottsai_com, kokorotts_net) is NOT owned by and NOT affiliated with this model page or its author, and attempts to imply otherwise are red flags.
| Model | Published | Training Data | Langs & Voices | SHA256 |
|---|---|---|---|---|
| v1.0 | 2025 Jan 27 | Few hundred hrs | 8 & 54 | 496dba11 |
| v0.19 | 2024 Dec 25 | <100 hrs | 1 & 10 | 3b0c392f |
| Training Costs | v0.19 | v1.0 | Total |
|---|---|---|---|
| in A100 80GB GPU hours | 500 | 500 | 1000 |
| average hourly rate | $0.80/h | $1.20/h | $1/h |
| in USD | $400 | $600 | $1000 |
1!pip install -q kokoro>=0.9.2 soundfile
2!apt-get -qq -y install espeak-ng > /dev/null 2>&1
3from kokoro import KPipeline
4from IPython.display import display, Audio
5import soundfile as sf
6import torch
7pipeline = KPipeline(lang_code='a')
8text = '''
9[Kokoro](/kˈOkəɹO/) is an open-weight TTS model with 82 million parameters. Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, [Kokoro](/kˈOkəɹO/) can be deployed anywhere from production environments to personal projects.
10'''
11generator = pipeline(text, voice='af_heart')
12for i, (gs, ps, audio) in enumerate(generator):
13 print(i, gs, ps)
14 display(Audio(data=audio, rate=24000, autoplay=i==0))
15 sf.write(f'{i}.wav', audio, 24000)@rzvzn on Discord496dba118d1a58f5f3db2efc88dbdc216e0483fc89fe6e47ee1f2c53f18ad1e4| Audio Data | Duration Used | License | Added to Training Set After |
|---|---|---|---|
Koniwa tnc | <1h | CC BY 3.0 | v0.19 / 22 Nov 2024 |
| SIWIS | <11h | CC BY 4.0 | v0.19 / 22 Nov 2024 |
