Description
KokoroSwift is a Swift package that runs the Kokoro text-to-speech model on iOS and macOS. Kokoro is a TTS model that generates English speech faster than real time. The package is a Swift Package Manager library for developers who want to add speech synthesis to their own apps. It is a port of the model from PyTorch to Apple's MLX framework, based on the MLX-Audio project. The README says it produces audio about 3.3 times faster than real time in a release build on an iPhone 13 Pro after warm-up. The listed requirements are iOS 18 and macOS 15 or newer. Grapheme-to-phoneme processing uses MisakiSwift by default, and eSpeak NG is available as an alternative that is commented out in the current version. The model file and voice styles are not included because of their size, so the app that uses the package supplies them. Recent versions moved voice styles out of the library and added timestamps for each token. The package is released under the MIT License.…
Highlights
- Kokoro text-to-speech for Swift
- Runs on iOS 18 and macOS 15 or newer
- Built on Apple's MLX framework
- Timestamps for each token
- Installs with Swift Package Manager
Ratings & Reviews
No ratings yet
Be the first to rate Kokoro Ios.
People also visit
Kokoro Ios FAQ
What is KokoroSwift?
A Swift package that adds the Kokoro text-to-speech model to iOS and macOS apps, running on Apple's MLX framework.
How do I add it to my project?
Add it with Swift Package Manager, then add it to your target. The README shows the code, and the Kokoro Test App example shows it in use.
Do I need to supply a model?
Yes. The model file and voice styles are not included because of their size, so your app provides them.
Which platforms are supported?
The README lists iOS 18.0 and macOS 15.0 or newer, and says other Apple platforms may work too.
What are the best Kokoro Ios alternatives?
Popular alternatives to Kokoro Ios include MLX Audio, Vocello and Sayit. See all Kokoro Ios alternatives

