logoalt Hacker News

Local, CPU-Friendly, High-Quality TTS (Text-to-Speech) with Kokoro

207 pointsby speckxtoday at 6:24 PM45 commentsview on HN

Comments

sudobash1today at 8:37 PM

I have used Kokoro fairly extensively for an accessibility product. I have loved working with it (especially because I don't have an NVidia GPU like many TTS of similar quality require).

I particularly appreciate the fact that it lets you manually add IPA pronunciation guides. There have been some cases where an important word is a homograph and Kokoro assumed the wrong pronunciation.

The place where it falls a little short is in saying just a single word or two. Try having it say simply "six" and it almost always says something like "ah-six-ah". I found a way around that though. If you give it a longer sentence to say (eg "The word is: six") it will say it fine. The trick is that the Kokoro API gives you the timestamp of each word in the sentence. So you can have a Python script crop out just the word you care about. The intonation is a little flat this way, but is very reliable.

I asked about this on the discord, and was told that it is a limitation of the small parameter size. But in fairness to Kokoro, even eleven-labs' voices suffer from this occasionally.

show 2 replies
mbergtoday at 11:05 PM

Kokoro is great. I built an mcp for it a while back that has gotten decent traction - https://github.com/mberg/kokoro-tts-mcp if anyone wants to go that route

SambhavGuptatoday at 9:54 PM

A couple months back I wrote a chrome extension that does this on any webpage, with simultaneous highlighting of the sentence being read. Skips both the container launching step and the copy pasting website contents step. Might be useful to anyone trying to use kokoro ergonomically.

https://chromewebstore.google.com/detail/local-reader-ai-on-...

bronco21016today at 10:11 PM

Love this model. I’m GPU poor and have had FOMO that I haven’t played with local models at all. About a month ago I setup Kokoro on my GTX1650 to do TTS for an article reader. A simple WebUI lets me paste a URL or a chunk of copy pasted text. Python cleans it up and sends to Kokoro for TTS and it’s then served via RSS for Apple Podcasts. Then for my morning drive I’ll catch up on articles or blog posts I’ve gathered.

At some point I’d like to play with separate voices and see if I could build something like NotebookLM for kind of like a radio morning show of news items I’ve gathered.

dmayletoday at 7:53 PM

Fun... This is something I actually care about...

I used to keep a version of whisperx around, because I think it's important to have not just transcription, but also timing and speaker identification (e.g. for subtitles)... It depends on pyannote, though, which has some wierd licensing (and is tougher to script the installs because of it), so I wanted to look at something that both had better transcription, and supported diarization (the speaker and timing). I decided on parakeet for the transcription with softformer (the diarization), but most of the available engines for it don't include softformer.

I coded up an OpenAI compatible server for parakeet-rs ( https://github.com/altunenes/parakeet-rs ) (which does support softformer) and I've been using it with OpenWhispr (a desktop app for transcription that handles all sorts of neat thing).

I'm doing CPU-only transcription (because I use my GPUs for other stuff and haven't gotten around to adding in the GPU-path), but it's incredibly empowering to be able to have local transcriptions at will.

show 1 reply
rnxrxtoday at 11:07 PM

Another endorsement - I used Kokoro pretty extensively with an app I was developing over the last year and it's been excellent, both on- and off- GPU. Even with Elevenlabs (long time subscriber) the comparative quality of Kokoro keeps up really well until you get to their larger models with their professional voices.

I do wish there were better support for SSML, as well as deeper documentation of how to influence inflection in-line, but the default does well with standard emphasis (e.g. putting asterisks around text elements). Both asks are getting outside the zone of reasonable asks for this sort of distribution, though, and I remain incredibly grateful for the quality of what hexgrad and nazdridoy have put out in the world.

montenegrohugotoday at 10:43 PM

Super cool!!

I've been using my own solution since January. I'm on Linux, and can't use Aqua, Whipsrflow etc... So i made my own.

Recently cleaned it up and made it install friendly.

If anyone is interested, you can check it out here: https://github.com/Hugo0/voiceio

It's self-improving over time, runs on your local machine, and is generally decent software. 60% of my interaction with my PC nowadays is pure voice input.

show 1 reply
deividtoday at 9:19 PM

I spent a day fiddling with AI and dropping the expensive layers in kokoro, on phones, on CPU, on MNN, it runs 3x faster.

Quality is very close.

Will vary in your setup, but here is my script: https://github.com/DavidVentura/translator-rs/blob/master/sc...

hdztoday at 10:49 PM

Who is going to hack together a mac widget that allows us to select text anywhere, press a shortcut key and finally get a non robotic voice outputted in a reasonable amount of time?

I am aware of the Option + Esc shortcut on osx for the onboard TTS but wow is it hard to listen to in 2026.

show 2 replies
mowmiatlastoday at 8:27 PM

Cool I actually got it ported to iPhone’s ANE finally yesterday! So we can get both rt natural local TTS and 4x less battery drainage and thermals

show 1 reply
dvttoday at 7:44 PM

I'm using Kokoro for a fun little side-project browser-based game I'm working on. It's legitimately super good for being only 85mb (for the wasm version) or 300mb (for the webgpu version).

miscandlanneoustoday at 10:41 PM

Naive question, but I once downloaded a particular voice file that I wanted to use with some other RVC TTS project, but ended up not being able to run it CPU only, so I only kept the voice I wanted. Thing is, the voice is in .pth format, and on Kokoro's huggingface page, their voices are all .pt.

Would I be able to use this voice I already have with Kokoro? If not, is there any way to convert it? I could always go looking if someone made this specific voice but in .pt format, but I barely mess with AI and don't know how I could search for this.

dmezzettitoday at 11:03 PM

I agree that Kokoro is a good TTS model.

If you're interested in an ONNX version and a permissively licensed TTS Tokenizer, I built a pipeline for that a while back: https://huggingface.co/NeuML/kokoro-base-onnx

kn100today at 7:21 PM

I'm using exactly this TTS engine for my intercom door system I built. The quality of the TTS is very good.

david_dracotoday at 10:06 PM

It's interesting that the male voices are all so much worse than the female voices (several are quite good). There is bias in machine learning, but I wonder whether there is also systematically more training data of female speech?

raymond_gootoday at 10:00 PM

https://github.com/rhulha/StreamingKokoroJS all in browser, 100% private, nothing tracked

show 1 reply
zackifytoday at 9:57 PM

I use kokoro with home assistant and its great. I find its the most natural sounding and small too.

I speak over sonos speakers when certain events happen. And use it as my voice assistant.

janpmztoday at 9:33 PM

Both Text-to-Speech and Speech-to-Text now have local models that are good enough to get the job done. Kokoro for TTS, Parakeet for STT and Fluid-1 for text formatting (I use it with FluidVoice). I hope this is a trend that continues for other applications.

Judsontoday at 9:01 PM

Love Kokoro tts. I wrote https://github.com/Jud/kokoro-coreml to try pushing the limits a bit on speed & size. Such great quality at a given size. As others have mentioned short utterances are problematic, but solvable.

TurdF3rgusontoday at 10:18 PM

When I hear the male voice I think: "Ok, it's the Youtube guy".

teravortoday at 7:16 PM

kokoro is decent but pocket-tts is much better especially when you rip a good voice. https://github.com/kyutai-labs/pocket-tts

the onnx version of pocket-tts does perform better. https://huggingface.co/KevinAHM/pocket-tts-onnx

show 2 replies
elevationtoday at 7:36 PM

Any good debian-ish distros that integrate TTS and STT in a usable shell?

fady0today at 9:03 PM

Anyone know which local TTS is best, close to Eleven Labs quality?

show 1 reply
cat_plus_plustoday at 10:28 PM

I just hooked it up to my personal AI Japanese Teacher app, pretty good quality / natural sounding speech in mixed English / Japanese while running fast on CPU so I don't waste VRAM.

0gstoday at 7:31 PM

kokoro is surprisingly great at nuance but it's tough to improve that last ~2% or so. kokoro + rvc is really great too; i use that for ELEMENT47, the LLM-centric comedy podcast i do that i wish more people would listen to. (e47.net , feel free to subscribe!)

behnamohtoday at 10:03 PM

On macOS I've been using piper (https://github.com/OHF-Voice/piper1-gpl) to announce claude code notifications and it works perfectly!

SubiculumCodetoday at 7:40 PM

kokoro is very nice, but I am disappointed that this wasn't an announcement of a new kokoro version.

thenextantoday at 9:29 PM

curious to know if it comes with audio tags?

othmanosxtoday at 7:58 PM

Yeah, we need to keep up with how quickly AI types back to us, typing on the keyboards is no longer quick enough, gotta dictate everything now.

show 2 replies
lostmsutoday at 7:05 PM

> Apple M2 Pro: 4.5 seconds

> AMD Ryzen 7 8745HS: 1.5 seconds

These two can probably do it much faster on their iGPUs.

show 1 reply
tempaccountabgdtoday at 8:52 PM

[dead]