Live data from Hacker News

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

ariya.io

51–60 of 107 posts

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

#51
post #3

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

I agree, pocket-tts is quite good. It is also very easy to make new voices from small sample files with pocket-tts.

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

#53
This repo is a good starting point for comparing TTS models https://github.com/5uck1ess/tts-bench

Kokoro is a really good model, considered it’s released 1.5 years ago. It’s punching above its weight https://5uck1ess.github.io/tts-bench/scores.html

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

#54
post #48

Earlier quoted context omitted.

In System Settings, if you go to Accessibility and click "Read & Speak" in the "Vision" section, you can select a different voice using the "System voice" section. Click the "(i)" to preview your various options and even download more. Some, like "Allison (Enhanced)," sound leagues better than the default voice.

Great point! these are better than Samantha and they're free. But still, if I could wait a few seconds to get a much richer TTS experience I'd pay for that.

Easy to send one’s clipboard to Microsoft Azure and have their DragonHD voices read the text, say with Keyboard Maestro (or presumably Alfred, Raycast, etc.). Should work with selected text too.

You’d definitely get to pay for it, not what I consider cheap. (“$15 per 1M characters”) But IMO just about best-in-class (maybe ElevenLabs has a voice I’d like even better).

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

#55
This is Amazing and a game changer. Millions were spent during NLP era to achieve even Now this on a CPU is next level. When algorithms perform well on commodity hardware, the scale tips.

This gives hope that CPULLM's are not far off that'll be just fine for majority of use cases.

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

#56

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.…

Check Open Notebook:

https://github.com/lfnovo/open-notebook

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

#57

This is Amazing and a game changer. Millions were spent during NLP era to achieve even Now this on a CPU is next level. When algorithms perform well on commodity hardware, the scale tips. This gives hope that CPULLM's are not far off that'll be just fine for majority of use cases.

Just ran on Podman on a older hardware with intel CPU processor and ubuntu linux.

When given a large text, it nicely chunked them up (debug statements showed), generated the audio and played back nicely.

Well done!

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

#58

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 inp…

This is text to speech, yours is speech to text. (But also thanks, your STT looks interesting)

Technically Voiceio also does TTS, but it's really crappy and just meant to read stuff loud / select a lot of text and listen to it podcast style whilst I'm e.g. washing the dishes.

However you're totally right that it's focused on STT. I probably use it 95% for STT and only occasionally for TTS (which also reflects itself in the amount of polish I put into each)

and thanks!

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

#59

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 lo…

Not super familiar but it seems to be technically possible.

https://github.com/Ashish-Patnaik/kokoclone

Generate audio with the voice and your first tool and use this to clone it into kokoro.

The pth/pt extension bit isn’t the problem. Those are PyTorch extensions and they’re synonymous like jpeg/jpg.

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

#60
post #28

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.

Did you use a Wyoming protocol wrapper to integrate with home assistant? Is it publicly available?

https://www.home-assistant.io/integrations/wyoming/

Post reply on HN