Files

6.1 KiB

Kikiri: private trained Anna, native CPU

Selected voice: the exact Anna full20 +20 checkpoint/voicepack accepted on 27 October 2026, with the narrow confirmed Vögel/Vögeln/Vögelchen phoneme fix. No further training, additional sentence gaps, breath smoothing, pitch shift or reference-voice approximation is part of this adapter. It uses FP32 and four CPU threads, 24-kHz mono PCM16. Granular breath texture and some unusual sentence emphasis remain known listening limitations, not solved claims.

Explicit dependencies and preparation

Native prerequisites: supported Debian x86_64, Python >=3.12 for the operator scripts, Git, CA roots, libstdc++6, libgomp1, FFmpeg (MP3 endpoint output), and the normal Deck service-user/state layout. No running container, global Torch, CUDA library, another model environment or experiment folder is a prerequisite.

install.py independently downloads SHA256-verified CPython3.11.18 and uv0.13.6, then installs CPU-only Torch2.6.0 and the exact qualified package set in requirements.lock. Kokoro fork b96fef95e6a746495f92443fac7c688f90fc57fc and Misaki fork 6d252a2e02f3b030f22f56686f1a73786c16ffc8 are immutable source pins. The original public config is Kikiri source a12d0410e89841e6f3c09958ae5c072f90ae1d49, training/config.json, with its fixed checksum in kikiri_runtime.py. eSpeak library/data come from the qualified loader wheel; no host speech package is silently assumed.

As the Deck data owner, import the separately supplied private files first:

python3 deploy/kikiri/import_voice.py --state /var/lib/athena-deck \
  --model /protected/anna-plus20/model.pth \
  --voice /protected/anna-plus20/voice.pt \
  --config /protected/anna-plus20/config.json
python3 deploy/kikiri/bootstrap.py --state /var/lib/athena-deck

The importer verifies all three fixed hashes before copying; a different voice or corrupt existing destination is rejected. Originals are not changed. The private bundle lives in STATE/kikiri-data/anna-plus20, the separately pinned CPU environment in STATE/kikiri-runtime/ID. The main weight is imported into the library as local/kikiri-anna, content revision equal to its SHA256; it has no fictitious public download location. Private model/voice/config files are not in Git. The original recording is not needed for inference.

Use an executable private TMPDIR inside the runtime/jobs root: phonemizer copies its shared library there. A noexec /tmp is preserved. Readiness is published only after validation; failed setup removes only its own candidate environment and does not destroy an existing active runtime.

Profile, endpoint and warm worker

Create an audio profile in the authenticated existing Deck UI, select the imported Anna model, use speed=1, title Kikiri Anna CPU, API ID kikiri-anna-cpu. Keep it unpublished until its direct test passes. The native operator equivalent may call Profiles.save only with Deck stopped at confirmed idle; never rewrite a live profiles.json behind the application.

The existing TTS page recognizes this model; its own /api/v1/kikiri test routes use the same bounded job/audio contract. Shared /v1/audio/speech supports explicit kikiri-anna-cpu and the neutral tts alias, WAV/MP3/PCM, German, voice=default/Anna, speed1. Publish exactly one dedicated audio profile to switch the neutral alias. Hermes remains configured to model: tts on the NAS; no per-bot or Mac/Conduit change is needed. Existing central text preparation remains optional and unchanged. The worker itself only performs the selected German frontend mapping and the narrow Vögel correction.

The CPU worker uses the configured speech affinity pool, nice10, four Torch threads and one inter-op thread. CPU-only Torch and hidden GPU devices are verified. It requests no GPU lease, does not unload Strata, and refuses startup with less than1.5GiB cgroup headroom. Load and a short frontend/decoder warmup complete before readiness. Warm residency follows the published TTS profile using the existing audio policy; switching publication does not rewrite the saved user preference. Cancellation is cooperative between native chunks, not a claim to interrupt a single model pass. Inputs remain bounded to1000 characters and PCM to32MiB; unknown/dropped phonemes fail explicitly.

Update, restore and present acceptance limits

Git publication does not activate this adapter. Install the reviewed Deck files with the normal native service-update method; restart only after explicit Go and confirmed completion of all accepted/queued work. Preserve the current LLM profile/settings and restore it afterwards. In the current read-only Docker deployment a thin image on the exact current base carries only the changed app files; no base-image, driver or Strata rebuild is required. No hot monkeypatch or additional permanent TTS service is used.

Existing encrypted user-data backup sources now explicitly include kikiri-data, kikiri-jobs and the local Kikiri library directory. Runtime source/version metadata is included in the configuration recipe. No new backup is run by this change. Restore private media/library first, rebuild the public CPU environment with the pinned recipe, then restore/recheck profile and single TTS publication. A configuration-only backup cannot recreate a private voice and explicitly reports that missing local model. Do not try to download Anna from Hugging Face. A fresh-Debian encrypted end-to-end restore is not tested.

Rollback selects the previous TTS publication; retain Articulino, Qwen, original Anna and their settings. Any app rollback uses its normal separately approved maintenance path. Production activation and neutral-endpoint WAV/PCM/MP3 checks were completed on 28 October 2026. Michael subsequently confirmed client playback works and chose to retain this exact setup despite a reported breathy/prolonged H in herein. Its cause is not established; no pronunciation patch or further training is authorized by that report. Separate acceptance of both clients and fresh-Debian restore remain untested. See the dated activation record.