Kokoro Runtime Swift Bundles
Public model bundles for the Swift package:
- GitHub package: https://github.com/mweinbach/kokoro-runtime-swift
This repo hosts two downloadable archives:
kokoro-mlx-bundle.zipkokoro-coreml-bundle.zip
Intended usage
Use the CLI from the Swift package:
swift run kokoro-runtime download --backend all --output-dir ./kokoro-bundle
swift run kokoro-runtime compile-coreml --bundle-dir ./kokoro-bundle
swift run kokoro-runtime run --backend mlx --bundle-dir ./kokoro-bundle --voice af_heart --phonemes "həlˈO wˈɜɹld."
swift run kokoro-runtime run --backend coreml --bundle-dir ./kokoro-bundle --voice af_heart --phonemes "həlˈO wˈɜɹld."
Bundle contents
kokoro-mlx-bundle.zip
Contains:
config.jsonkokoro-v1_0.safetensorsvoices/*.safetensorsmlx.metallib- conversion metadata
kokoro-coreml-bundle.zip
Contains:
Artifacts/models/*.mlpackageArtifacts/manifest.jsonArtifacts/config.jsonArtifacts/harmonic_source.jsonArtifacts/voices/*.binArtifacts/voices/voices.json
Notes
- These bundles are for local Swift runtime use.
- The current runtime path is phoneme-input oriented.
- Core ML bundles should be compiled locally with
compile-coremlbefore first use.