Open
Conversation
Kokoro is an 82M parameter open-source TTS model (Apache 2.0) that consistently ranks near ElevenLabs in quality benchmarks. Runs on CPU, supports 8 languages and 30+ voices, pip-installable. - Add kokoro_tts() with word-level timestamp estimation - Add get_kokoro_voices() with all available voices - Add Kokoro to TTS server dropdown in webui - Add kokoro + soundfile to requirements.txt
soundfile (libsndfile) doesn't support MP3 encoding. Save as .wav and set _actual_audio_file so task.py picks up the right path, same pattern as chatterbox TTS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pip install kokoro soundfile(+espeak-ngsystem dep)Voices included
American English (6F/2M), British English (2F/2M), Japanese (2F/1M), Mandarin Chinese (3F/2M), French, Hindi, Italian, Brazilian Portuguese, Spanish
Test plan
pip install kokoro soundfileandbrew install espeak(macOS) orapt install espeak-ng(Linux)