Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Kokoro TTS for iOS and macOSX
| Date | Stars |
|---|---|
| 2026-07-30 | 274 |
| 2026-08-07 | 276 |
| 2026-08-15 | 276 |
| 2026-08-19 | 276 |
| 2026-08-20 | 276 |
| 2026-08-21 | 277 |
| 2026-08-24 | 278 |
| 2026-08-25 | 279 |
| 2026-08-26 | 280 |
| 2026-08-27 | 281 |
| 2026-08-28 | 283 |
| 2026-08-29 | 283 |
| 2026-08-30 | 284 |
| 2026-09-01 | 286 |
| 2026-09-02 | 286 |
| 2026-09-03 | 286 |
| 2026-09-04 | 286 |
| 2026-09-05 | 286 |
| 2026-09-07 | 286 |
| 2026-09-09 | 288 |
| 2026-09-10 | 288 |
| 2026-09-14 | 289 |
| 2026-09-20 | 290 |
| 2026-09-21 | 290 |
| 2026-09-22 | 290 |
| 2026-09-28 | 291 |
| 2026-10-02 | 292 |
| 2026-10-03 | 292 |
| 2026-10-04 | 292 |
| 2026-10-11 | 292 |
| 2026-10-14 | 293 |
| 2026-10-18 | 293 |
| 2026-10-19 | 294 |
| 2026-10-22 | 294 |
| 2026-11-02 | 295 |
| 2026-11-03 | 295 |
| 2026-11-04 | 295 |
Today
— stars today
This week
+1 stars this week
This month
+3 stars this month
Momentum
0.0
growth rate 0.34%/day
# Kokoro TTS for Swift
✨ *New in 1.0.8:* Added timestamps for each token. Please check [Kokoro Test App](https://github.com/mlalma/KokoroTestApp) how to use them.
✨ *New in 1.0.5:* Voice styles are moved out of the library to the integrating application. Please check [Kokoro Test App](https://github.com/mlalma/KokoroTestApp) how to use them.
Kokoro is a high-quality TTS (text-to-speech) model, providing faster than real-time English audio generation.
*NOTE:* This is a SPM package of the TTS engine. For an application integrating Kokoro and showing how the neural speech synthesis works, please see [KokoroTestApp](https://github.com/mlalma/KokoroTestApp) project.
Kokoro TTS port is based on the great work done in [MLX-Audio project](https://github.com/Blaizzy/mlx-audio), where the model was ported from PyTorch to MLX Python. This project ports the MLX Python code to MLX Swift.
Currently the library generates audio ~3.3 times faster than real-time on the release build on iPhone 13 Pro after warm up / first run.
## Requirements
- iOS 18.0+
- macOS 15.0+
- (Other Apple platforms may work as well)
## Installation
Add KokoroSwift to your project using Swift Package Manager:
```swift
dependencies: [
.package(url: "https://github.com/mlalma/kokoro-ios.git", from: "1.0.0")
]
```
Then add it to your target:
```swift
.target(
name: "YourTarget",
dependencies: [
.product(name: "KokoroSwift", package: "kokoro-ios")
]
)
```
## Usage
```swift
import KokoroSwift
// Initialize the TTS engine
let modelPath = URL(fileURLWithPath: "path/to/your/model")
let tts = KokoroTTS(modelPath: modelPath, g2p: .misaki)
// Generate speech
let voiceEmbedding = ... // See KokoroTestApp on how to get a voice style as an `MLXArray`
let text = "Hello, this is a test of Kokoro TTS."
let audioBuffer = try tts.generateAudio(voice: voiceEmbedding, language: .enUS, text: text)
// audioBuffer now contains the synthesized speech
```
## G2P (Grapheme-to-Phoneme) Options
- `.misaki` - MisakiSwift, default G2P processor
- `.espeak` - eSpeakNG, an alternative G2P processor (commented out in current version)
## Model Files
You'll need to provide your own Kokoro TTS model file due to its large size as well as voice style. Please see example project [Kokoro Test App](https://github.com/mlalma/KokoroTestApp) how they can be included as a part of the application package.
## Dependencies
This package depends on:
- [MLX Swift](https://github.com/ml-explore/mlx-swift) - Apple's MLX framework for Swift
- [MisakiSwift](https://github.com/mlalma/MisakiSwift) - G2P processor
- [MLXUtilsLibrary](https://github.com/mlalma/MLXUtilsLibrary) - Utility library
## License
This project is licensed under MIT License - see the [LICENSE](LICENSE) file for details.Excerpt of 2,791 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:07ac83d355de11df, topic:text-to-speech, topic:tts, topic:audio-processing