Add model card README
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: kokoro-runtime-swift
|
| 3 |
+
license: other
|
| 4 |
+
pipeline_tag: text-to-speech
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Kokoro Runtime Swift Bundles
|
| 8 |
+
|
| 9 |
+
Public model bundles for the Swift package:
|
| 10 |
+
- GitHub package: https://github.com/mweinbach/kokoro-runtime-swift
|
| 11 |
+
|
| 12 |
+
This repo hosts two downloadable archives:
|
| 13 |
+
- `kokoro-mlx-bundle.zip`
|
| 14 |
+
- `kokoro-coreml-bundle.zip`
|
| 15 |
+
|
| 16 |
+
## Intended usage
|
| 17 |
+
|
| 18 |
+
Use the CLI from the Swift package:
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
swift run kokoro-runtime download --backend all --output-dir ./kokoro-bundle
|
| 22 |
+
swift run kokoro-runtime compile-coreml --bundle-dir ./kokoro-bundle
|
| 23 |
+
swift run kokoro-runtime run --backend mlx --bundle-dir ./kokoro-bundle --voice af_heart --phonemes "həlˈO wˈɜɹld."
|
| 24 |
+
swift run kokoro-runtime run --backend coreml --bundle-dir ./kokoro-bundle --voice af_heart --phonemes "həlˈO wˈɜɹld."
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Bundle contents
|
| 28 |
+
|
| 29 |
+
### `kokoro-mlx-bundle.zip`
|
| 30 |
+
Contains:
|
| 31 |
+
- `config.json`
|
| 32 |
+
- `kokoro-v1_0.safetensors`
|
| 33 |
+
- `voices/*.safetensors`
|
| 34 |
+
- `mlx.metallib`
|
| 35 |
+
- conversion metadata
|
| 36 |
+
|
| 37 |
+
### `kokoro-coreml-bundle.zip`
|
| 38 |
+
Contains:
|
| 39 |
+
- `Artifacts/models/*.mlpackage`
|
| 40 |
+
- `Artifacts/manifest.json`
|
| 41 |
+
- `Artifacts/config.json`
|
| 42 |
+
- `Artifacts/harmonic_source.json`
|
| 43 |
+
- `Artifacts/voices/*.bin`
|
| 44 |
+
- `Artifacts/voices/voices.json`
|
| 45 |
+
|
| 46 |
+
## Notes
|
| 47 |
+
|
| 48 |
+
- These bundles are for local Swift runtime use.
|
| 49 |
+
- The current runtime path is phoneme-input oriented.
|
| 50 |
+
- Core ML bundles should be compiled locally with `compile-coreml` before first use.
|