mstar.model.kokoro.voices#
Voice registry: the bundled Kokoro voice packs and blends of them.
A voice pack is a [510, 1, 256] tensor with one style vector per phoneme
count; a request’s style is the row for its chunk’s phoneme-string length. A
blend is a weighted sum of packs, spelled af_bella+af_sky (equal weights),
af_bella(2)+af_sky(1) or af_bella-am_adam(0.5) (Kokoro-FastAPI’s syntax;
weights are normalized by their absolute sum), or af_bella,af_sky (the
kokoro package’s comma mean). Subtraction only steers a blend: the positive
weights must outweigh the negative ones, since a negated or cancelled style
decodes to loud noise.
Classes
|
- class mstar.model.kokoro.voices.VoiceRegistry(voices_dir, pack_rows, style_dim)[source]#
Bases:
object- static parse_blend(spec)[source]#
"af_bella(2)+af_sky-am_adam(0.5)"->[(af_bella, 2), (af_sky, 1), (am_adam, -0.5)].