Views
No views yet
| Directory | Format | Backend | Notes |
|---|---|---|---|
MLX_GPU/ | safetensors + npy | MLX-Swift (GPU) | Primary inference path via Metal |
CoreML_ANE/segmented/ | mlpackage × 4 | CoreML (ANE + CPU) | Segmented for optimal Neural Engine utilization |
config.json # Model config (vocab, architecture)
MLX_GPU/
kokoro-v1_0.safetensors # MLX model weights (~310MB)
voices/ # Voice style packs (.npy, 54 voices)
af_heart.npy, af_bella.npy, ...
CoreML_ANE/segmented/
albert.mlpackage # ALBERT encoder (ANE)
decoder.mlpackage # Vocoder/decoder (ANE)
prosody.mlpackage # Prosody predictor (CPU)
text_encoder.mlpackage # Text encoder (CPU){lang}{gender}_{name}:af_* — American Female, am_* — American Malebf_* — British Female, bm_* — British Maleef_* / em_* — Spanish, ff_* — French, jf_* / jm_* — Japanese, etc.1import Kokoro
2
3// Download a voice on demand
4let voiceURL = try await VoiceDownloader.download(voice: "af_heart")
5
6// Or use the CLI
7// KokoroCLI --text "Hello world" --voice af_heart --output hello.wav --weights-dir MLX_GPU