Integrate trained Kikiri Anna CPU TTS with stable endpoint and restore recipe
This commit is contained in:
1 parent
7e2cd643d6
commit
2ef16dc1ee
25 files changed
+872
-21
No files matched your search
@@ -0,0 +1,95 @@
|
||||
# Kikiri Anna endpoint integration · 28 October 2026
|
||||
|
||||
Michael authorized integrating the selected trained Anna TTS profile. The
|
||||
selected +20 model/voicepack and the confirmed narrow Vögel correction are
|
||||
retained; no further training, smoothing, pitch change or artificial sentence
|
||||
pauses. The current Strata/Qwen workload must not be unloaded without a
|
||||
separate explicit Go. Clients continue to request the shared neutral `tts` alias.
|
||||
|
||||
## Prepared implementation
|
||||
|
||||
- Separate CPU-only worker and reproducible pinned environment; public native
|
||||
CPython3.11.18, Torch2.6.0+cpu, fixed Kokoro/Misaki forks and qualified packages.
|
||||
- Private selected weights/voice/config imported with exact SHA256 checks to
|
||||
`STATE/kikiri-data/anna-plus20`, owner65534:65534, private modes. Originals
|
||||
remain unchanged. No experiment-folder dependency or public Anna download.
|
||||
- Main library entry `local/kikiri-anna`, ID
|
||||
`210821ba56d02267f6cbfaca80542acf6317ee24e8eb8ca673a89e6faab22e99`.
|
||||
- Profile **Kikiri Anna CPU**, API ID `kikiri-anna-cpu`, profile ID
|
||||
`55674c73a9604e1fa6e9c4a85a5f9692`, speed1. Created through the authenticated
|
||||
existing Deck UI; the exact model ID was independently read back. It is
|
||||
**not published** while the old app lacks this adapter.
|
||||
- Existing profile/test/library UI, `model=tts`/explicit-model routing,
|
||||
WAV/MP3/PCM, cancellation, warm residency, deletion protection and CPU
|
||||
resource rules are integrated. No Hermes, Mac or Conduit source/config change.
|
||||
- Configuration backup recipes and explicit encrypted media-source lists include
|
||||
the private voice and its local library directory. No backup was executed.
|
||||
Reproduction/update/restore instructions: [native recipe](../../../deploy/kikiri/README.md).
|
||||
|
||||
The first installation reached package compatibility but failed because
|
||||
phonemizer copies its shared library into the noexec production `/tmp`.
|
||||
The corrected recipe supplies its own private executable TMPDIR inside the
|
||||
runtime/jobs root. No global mount/security flags changed; the failed own
|
||||
candidate environment was removed. The corrected native install completed.
|
||||
|
||||
The first synthetic driver invocation unnecessarily constrained its own
|
||||
affinity before the shared CPU-layout validator checked the whole layout.
|
||||
Removing that outer restriction lets the actual worker apply the existing
|
||||
speech affinity itself. No saved CPU mask or production setting was changed.
|
||||
|
||||
## Verification
|
||||
|
||||
The complete local synthetic regression suite passes **711 tests in82.175s**.
|
||||
This includes nine new Kikiri tests for exact voice qualification, narrow
|
||||
Unicode-aware pronunciation, neutral-alias/format routing, safe voice selection,
|
||||
cooperative cancellation, PCM/WAV parity, corrupt assets, unknown phonemes and
|
||||
CPU warm selection. An old model-management expectation omitted the two
|
||||
already-published Strata pipeline defaults (`groups=1`, batch-MTP=true); only
|
||||
that fixture was updated, no Strata behavior changed. Initial failures and the
|
||||
restricted-socket repeat are not counted as successful tests. The final
|
||||
17-test packaging/Kikiri subset also passes with its synthetic socket allowed.
|
||||
|
||||
The real installed CPU worker ran two synthetic passages, then was stopped:
|
||||
|
||||
| Case | Audio | Synthesis | RTF | PCM/WAV |
|
||||
| --- | ---: | ---: | ---: | --- |
|
||||
| Selected expressive paragraph | 15.525s | 4.570s | 0.2943 | Identical samples |
|
||||
| Technical text through existing preparation | 20.625s | 6.107s | 0.2961 | Identical samples |
|
||||
|
||||
About3.4× realtime, four CPU threads. These are short generation measurements,
|
||||
not a sustained Strata-load stress test or a first-sample latency guarantee.
|
||||
The native chunk arrives after its synthesis; this adapter does not claim
|
||||
incremental audio within one model pass. [Worker record](worker-check.json).
|
||||
|
||||
Local Parakeet recognized all40 expressive words, including **Vögel**, with
|
||||
punctuation ignored. Technical recognition retains known term discrepancies
|
||||
around Unraid, log wording, Mebibyte, CEST and Scan; ASR alone cannot attribute
|
||||
all of these to TTS or establish voice identity. No claim of perfect technical
|
||||
pronunciation. [Synthetic-only STT record](synthetic-stt.json).
|
||||
|
||||
The worker check confirmed unchanged production config hashes and stopped
|
||||
only its own worker. Deck still has start time
|
||||
`2026-10-28T11:44:30.359091352Z`, PID916651; its scoped process family includes
|
||||
Strata PID917398. No Deck, model, Hermes, container or host restart occurred.
|
||||
Only the newly requested unpublished profile/library/voice and preparation
|
||||
files were added. Existing Articulino remains the sole published dedicated TTS.
|
||||
|
||||
## Candidate and pending activation
|
||||
|
||||
App-only image `athena-deck-standalone:kikiri-anna-20261028` built successfully
|
||||
on the currently running `strata-pipeline-config-20261028` base. No apt, CUDA,
|
||||
Strata or large base-image rebuild. Model weights/private audio are absent
|
||||
from the image and Git. The image is a candidate, **not the running container**.
|
||||
|
||||
The adapter cannot be loaded into the already running read-only app without
|
||||
restarting Deck. Do not monkeypatch it or replace a current worker behind the
|
||||
app. Await Michael's explicit Go for an idle Deck restart and the corresponding
|
||||
temporary end/reload of Qwen. Before switching re-read current image, accepted
|
||||
and queued requests, active profile and settings; preserve concurrent changes.
|
||||
After Go restore that exact chat profile/settings, then switch the single TTS
|
||||
publication via authenticated UI, verify neutral alias/PCM/MP3 and obtain native
|
||||
client listening acceptance. A new browser login may be needed after restart.
|
||||
|
||||
No productive activation, final endpoint/client acceptance or fresh-Debian
|
||||
encrypted restore is claimed by this preparation. Keep Articulino/Qwen and
|
||||
original/private training data. Full VPN exclusion remains binding.
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"case": "expressive",
|
||||
"seconds": 1.1513857230020221,
|
||||
"recognized": "Guten Morgen Michael, schön, dass du wieder da bist. Draußen rauscht der Regen und die Vögel suchen Schutz unter dem Dach. Wirklich, das hätte ich nicht gedacht. Heute nehmen wir uns ein wenig Zeit und machen alles ganz in Ruhe."
|
||||
},
|
||||
{
|
||||
"case": "technical",
|
||||
"seconds": 1.7048103419947438,
|
||||
"recognized": "Home Assistant läuft auf Anreit. Der Docker Container meldet 47 Grad. Im Logdatei stehen keine Fehler. Der freie Speicher beträgt 512 Mebibüte. Die Verbindung liefert 100 Mbit pro Sekunde. Um 18,30 Uhr KST beginnt der nächste Scarn."
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"complete": true,
|
||||
"runs": [
|
||||
{
|
||||
"id": "1c56cb639f9242d3bde55be0169f8531",
|
||||
"duration": 15.525,
|
||||
"sample_rate": 24000,
|
||||
"seconds": 4.5696970260178205,
|
||||
"first_chunk_seconds": 4.568761560018174,
|
||||
"case": "expressive",
|
||||
"rtf": 0.2943444139141913,
|
||||
"pcm_matches_wav": true
|
||||
},
|
||||
{
|
||||
"id": "afe8f9ca2ccf4403bf9ab1060da160cd",
|
||||
"duration": 20.625,
|
||||
"sample_rate": 24000,
|
||||
"seconds": 6.106619570025941,
|
||||
"first_chunk_seconds": 6.105532149027567,
|
||||
"case": "technical",
|
||||
"rtf": 0.29607852460731837,
|
||||
"pcm_matches_wav": true
|
||||
}
|
||||
],
|
||||
"wall_seconds": 17.803943233011523,
|
||||
"production_config_unchanged": true,
|
||||
"own_worker_stopped": true
|
||||
}
|
||||
Reference in new issue
Block a user