Kokoro TTS: What It Is, What It Costs and How to Start

Hear Kokoro TTS in hexgrad’s demo, choose from 54 voices, and make a local WAV. See what the license allows for a product video.

Published

Kokoro TTS: What It Is, What It Costs and How to Start

Kokoro TTS can read your product script aloud in any of 54 preset voices. Try a line with your product name in hexgrad’s browser demo first. If you like the delivery, you can use the same voice on your own machine when the script changes.

What is Kokoro TTS?

Kokoro is an 82-million-parameter text-to-speech model published by hexgrad. Its parameters are the learned settings that turn written words into speech. The weights, the files containing those settings, are available under the Apache License 2.0. Hexgrad credits @rzvzn with training the model and Li and colleagues with the underlying StyleTTS 2 architecture. The project repository contains the Python library that lets you use the weights.

Kokoro TTS voices list by language

On December 1, 2026, hexgrad’s model card listed eight languages and 54 voices for v1.0. The voice directory has nine groups because it separates American and British English. Your choice is much wider in some languages than in others. An English-language producer can audition several narrators with the same accent. For French, listen to ff_siwis before committing a whole series to the model.

Language or accentVoicesVoice IDs for local use
American English20af_heart, af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky, am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck, am_santa
British English8bf_alice, bf_emma, bf_isabella, bf_lily, bm_daniel, bm_fable, bm_george, bm_lewis
Japanese5jf_alpha, jf_gongitsune, jf_nezumi, jf_tebukuro, jm_kumo
Mandarin Chinese8zf_xiaobei, zf_xiaoni, zf_xiaoxiao, zf_xiaoyi, zm_yunjian, zm_yunxi, zm_yunxia, zm_yunyang
Spanish3ef_dora, em_alex, em_santa
French1ff_siwis
Hindi4hf_alpha, hf_beta, hm_omega, hm_psi
Italian2if_sara, im_nicola
Brazilian Portuguese3pf_dora, pm_alex, pm_santa

How Kokoro reads a script

Give Kokoro the words and cast a narrator. Think of changing the voice as handing the same script to another reader. The library converts the spelling into speech sounds for the selected language. The preset supplies the voice that speaks them.

In hexgrad’s example, lang_code='a' selects American English, voice='af_heart' casts Heart, and the script saves each passage as a WAV audio file. To hear the effect of casting alone, keep the words and speed fixed when you switch voices.

Listening to Kokoro TTS voice samples

The maker’s recorded voice samples are a quick way to shortlist a voice before trying your script.

A script and a rack of preset voices feed the same speaking horn.
The words and the narrator are separate inputs. Keep one fixed to hear what the other changes.

Does Kokoro TTS voice cloning work from a recording?

The released model has no voice encoder, the component that would extract a new speaker’s vocal identity from a recording. You can pick Heart by name. You can’t hand this release a clip of your founder and ask Heart to speak in the founder’s voice. If the audience needs to recognize the speaker, settle that requirement before spending time auditioning presets.

Who should use Kokoro for a product video?

Kokoro fits a product marketer whose walkthrough changes whenever the interface does. Write a separate line for the shot where the customer clicks Export. If the button later becomes Download, keep the approved voice ID, replace that line, and check where the new word lands against the cursor. Save the script, voice ID, language and speed with the edit so the next producer can recreate the take.

Commercial narration is permitted. Section 2 of the Apache License 2.0 gives recipients “a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license” and expressly includes the right to publicly perform the work. For a product video, you can use the model to narrate a script you own. Shipping the model itself inside a customer’s app adds redistribution duties under section 4, including supplying the license, retaining applicable notices and identifying modified files.

A solo builder can start with one help article and listen for the terms customers need to recognize. A team planning a live narration feature has a different acceptance test. Time the wait for speech on the machine that will serve users. A good reading of a prepared script settles the voice choice, but leaves that timing question open.

Cost. Local use carries no model license fee and uses your own computing resources. For hosted generation, DeepInfra’s Kokoro endpoint lists $0.99 per million input characters.

Try the Kokoro TTS demo in your browser

Open hexgrad’s official Hugging Face demo. This Space, a hosted interactive app linked by the model’s publisher, showcases English. The other languages in the directory are available through the model.

Hexgrad’s Kokoro demo with text, voice, speed and audio controls.
Kokoro TTS on hexgrad’s Hugging Face Space
  1. Paste a line you expect to ship

    Replace the example in Input Text with a sentence such as “Open Acme Studio, choose your report, then select Export.” A product name and an instruction give you something specific to listen for.

  2. Choose a voice and generate

    Pick a narrator in Voice, leave Speed at its default, and select Generate. Play Output Audio. Can someone following the video hear the button name clearly before the cursor moves?

  3. Change one thing per take

    For a rushed pause, try a full stop after the product name. For a different narrator, restore the original sentence and change only the voice. Listen against the picture before choosing.

Kokoro TTS download and local setup

Use the local library when you want to generate the same kind of take from a script. Here is the repository’s setup adapted from notebook cells to a Debian or Ubuntu terminal. Start in an empty project directory with an activated Python virtual environment. The quotation marks around the version constraint keep the shell from treating > as an instruction to redirect output.

Bash
python -m pip install -q 'kokoro>=0.9.4' soundfile
sudo apt-get -qq -y install espeak-ng

The Python package runs Kokoro. SoundFile writes the audio to disk, and eSpeak NG supplies pronunciation support for some languages and a fallback for unfamiliar English words. The first run needs a connection to fetch the model and selected voice.

A package crate holds kokoro and soundfile beside an espeak-ng diction stand and an audio reel labeled 0.wav.
Install the Python packages and pronunciation helper, then run the script below to write the first take.

Save this as narrate.py and run python narrate.py in the same environment. It uses hexgrad’s example narrator with a short product-video line.

Python
from kokoro import KPipeline
import soundfile as sf

pipeline = KPipeline(lang_code='a')
script = "Open Acme Studio. Choose your report, then select Export."
for i, (_, _, audio) in enumerate(pipeline(script, voice='af_heart')):
    sf.write(f'{i}.wav', audio, 24000)

Play 0.wav in the project directory. For longer text, the loop saves each segment to a separate numbered file. Move any take you want to keep before rerunning the script, since the numbering starts over. When switching language, change both the pipeline’s language code and the voice ID to a matching pair from the directory.

What hardware does it need?

A CPU can run Kokoro. The library’s device-selection code includes a CPU path, and the repository documents GPU acceleration on Apple Silicon. Hexgrad’s model card gives no minimum RAM or graphics-memory requirement for generating speech. Its A100 figure describes the hardware used to train the model. Start with the computer you have and time your own passage before budgeting for a GPU.

What a successful demo tells you

One good take tells you a specific voice fits a specific line. It doesn’t establish parity with a paid service across a training course, languages or speakers. For a multilingual release, give someone who speaks each target language the passage containing the brand name, the longest instruction and the final call to action. Ask them to flag the exact word they would rerecord.

If the job calls for another local speech model, the Qwen3-TTS setup guide is a next experiment. For a conversation between speakers, follow the Google AI Studio dialogue walkthrough. If a managed voice service is the requirement, start with the Fish Audio guide and use the Fish Audio and ElevenLabs comparison to narrow that choice. The ElevenLabs alternatives guide covers the wider shortlist.

If the preset voices don’t fit your brief, compare the best text-to-speech tools for your project.

Published
Category
AI
Related Articles
Study Fetch AI: What It Does, What It Costs and How to Start

Study Fetch AI: What It Does, What It Costs and How to Start

See how StudyFetch turns class files into notes, flashcards and quizzes, what Premium costs, and what parents should check before uploading student work.Dec 1, 2026AI
Claude Sonnet 4.5 Retirement and How to Migrate to Sonnet 5.5

Claude Sonnet 4.5 Retirement and How to Migrate to Sonnet 5.5

Both Sonnet 4.5 IDs retired on the Claude API. Check the deadline for your cloud provider, find old calls, and update request settings for Sonnet 5.5.Dec 1, 2026AI
Best AI Essay Writer in 2026: ChatGPT, Claude, Jenni AI and More Compared

Best AI Essay Writer in 2026: ChatGPT, Claude, Jenni AI and More Compared

Compare ChatGPT, Claude, Gemini and four writing tools on one college essay prompt. See which tools find sources, format citations or help revise your own draft.Dec 1, 2026AI
Magai: What It Is, What It Costs, and How to Start

Magai: What It Is, What It Costs, and How to Start

See which AI models Magai includes, how its shared usage balance works, and when one workspace makes sense beside ChatGPT, Claude and Gemini.Dec 1, 2026AI
ChatGPT Usage Limits and the Shared Codex Allowance

ChatGPT Usage Limits and the Shared Codex Allowance

See which chats share your Codex allowance, where to find your reset time, and what you can keep doing when you reach a limit.Dec 1, 2026AI
Next Claude Model Delay: What January Means for Users

Next Claude Model Delay: What January Means for Users

Anthropic moved pretraining to January at the earliest. Here’s what the separate launch pause means and which Claude models you can use today.Nov 30, 2026AI
Google AI Edge Gallery: What It Is and How to Use It Offline

Google AI Edge Gallery: What It Is and How to Use It Offline

Get Google AI Edge Gallery for Android, iPhone, or Mac. Choose a compatible model, try your first offline prompt, and see which tasks need a connection.Nov 30, 2026AI
GigaChat 4: What It Is and How to Run It

GigaChat 4: What It Is and How to Run It

Meet Sber’s GigaChat models, compare their licenses and hardware needs, and send your first request to the smaller model on your own server.Nov 30, 2026AI
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.