Daphne is a house-assistant voice: a German Kokoro fine-tune read through British English G2P. This repo is her as a drop-in 7-stage CoreML chain for FluidAudio's KokoroAne backend, so she runs on the ANE on iPhone, iPad, Apple Watch and Mac instead of over the network.
Synthesis runs at roughly 8–20× realtime on an M4 Pro.
The model alone is not the voice. Three things have to be applied together, and dropping any one of them gives a recognisably different speaker:
gb_gold + gb_silver as a custom lexicon — it is consulted before the bundled one, leaving only out-of-vocabulary words on the American fallback.speed = 1 / 1.1 at synthesis.speed / pitch to put the duration back where it started, netting +10% pitch at the original tempo. Reinterpreting the 24 kHz buffer at 26400 Hz is bit-identical to resample_poly(y, 10, 11) and needs no filter, which also means it carries no state across chunk boundaries.let manager = KokoroAneManager(defaultVoice: "bf_alice", directory: repo)
manager.setEnglishCustomLexicon(gbLexicon) // word → Misaki IPA
try await manager.initialize()
let wav = try await manager.synthesize(text: line, voice: "bf_alice", speed: 1.0 / 1.1)
// play the 24 kHz buffer at 26400 Hz
The chain is not autoregressive — durations are predicted for the whole phoneme string and every frame is generated at once — so nothing arrives early within an utterance. Time-to-first-audio comes from splitting at clause boundaries and starting playback on the first chunk while the rest synthesize behind it.
On an M4 Pro a five-clause reply synthesizes each chunk in 0.08–0.15 s for 1.5–3 s of speech (~20× realtime): TTFA 0.12 s against a per-chunk budget of 2.4 s. Only the first chunk is on the critical path.
bf_alice.bin is Daphne's style vector, not Alice. FluidAudio loads whatever pack is on disk under the requested name, so the stock name is only a filename; it stays because every install already carries it.
The pack is the usual flat [510, 256] fp32 layout — [0..<128] is style_timbre, [128..<256] is style_s. Every row is identical, so the phoneme-length bucket does not matter.
| Stage | Source |
|---|---|
KokoroPostAlbert.mlmodelc, KokoroVocoder.mlmodelc |
converted from this fine-tune |
KokoroAlbert, KokoroAlignment, KokoroProsody_v2, KokoroNoise_v2, KokoroTail_v2 |
FluidInference/kokoro-82m-coreml, unmodified |
KokoroProsody |
the same, superseded by KokoroProsody_v2; kept for FluidAudio 0.17.4 and earlier |
KokoroProsody_v2 is FluidAudio's fp32 re-export of the prosody stage (FluidAudio #963, required from 0.17.5): the fp16 graph corrupts F0 and energy at the start of long utterances, which is heard as a quiet onset. It is cut from the same predictor module, which this fine-tune left untouched, and has the same en + style_s → F0, N interface; with her other six stages it produces the same output as the old bundle to within rounding. Like the other stock bundles it ships without metadata.json, which CoreML does not need to load it.
Only two stages needed converting. The fine-tune moved decoder and text_encoder and left bert, bert_encoder and predictor bit-identical to stock, so the stages cut from those modules are reused as published — which also keeps FluidAudio's _v2 phase and iSTFT fixes, since Noise and Tail are speaker-independent.
Base model hexgrad/Kokoro-82M, Apache-2.0. The German fine-tune underneath (51 speakers, HUI corpus) was published as junkstage/kokoro-deutsch-hui-base, which is no longer on the Hub; its licence terms could not be confirmed at upload time. The CoreML conversion follows laishere/kokoro-coreml.
KokoroVocoder.mlmodelc/weights/weight.bin 49 MBKokoroPostAlbert.mlmodelc/weights/weight.bin 14 MBKokoroProsody_v2.mlmodelc/weights/weight.bin 9 MBKokoroProsody.mlmodelc/weights/weight.bin 8 MBKokoroAlbert.mlmodelc/weights/weight.bin 6 MBKokoroNoise_v2.mlmodelc/weights/weight.bin 5 MBaf_heart.bin 522.2 kBbf_alice.bin 522.2 kBKokoroTail_v2.mlmodelc/weights/weight.bin 81.1 kBKokoroAlignment.mlmodelc/weights/weight.bin 4.1 kBKokoroVocoder.mlmodelc/coremldata.bin 0.6 kBKokoroPostAlbert.mlmodelc/coremldata.bin 0.6 kBKokoroAlignment.mlmodelc/coremldata.bin 0.5 kBKokoroNoise_v2.mlmodelc/coremldata.bin 0.4 kBKokoroAlbert.mlmodelc/coremldata.bin 0.4 kBKokoroProsody.mlmodelc/coremldata.bin 0.4 kBKokoroProsody_v2.mlmodelc/coremldata.bin 0.4 kBKokoroTail_v2.mlmodelc/coremldata.bin 0.4 kBKokoroAlbert.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroAlignment.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroNoise_v2.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroPostAlbert.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroProsody.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroProsody_v2.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroTail_v2.mlmodelc/analytics/coremldata.bin 0.2 kBKokoroVocoder.mlmodelc/analytics/coremldata.bin 0.2 kBhexgrad/Kokoro-82M