Diagnose Anna Vogel plural phonemes and compare sentence prosody

This commit is contained in:
Mikei386 committed 2026-10-27 20:32:49 +01:00
1 parent e0910fde63
commit 91c0428496
8 files changed
+583 -5

No files matched your search

@@ -144,3 +144,14 @@ Private original audio/transcripts, model weights, endpoint snapshots, keys and
the local UI screenshot stay out of Git. All original material and previous
selected checkpoints are retained. This is a bounded comparison; more epochs
are not automatically warranted without a useful listening improvement.
## Subsequent listening decision
Michael selected **`anna-full20-plus20-expressive.wav`**: it is now almost the
original Anna voice to his ears. He still hears **Vögel as Wögel**, independently
confirming the earlier ASR discrepancy as an audible problem, and a slight
robotic character. This supersedes the pending listening status above; it does
not approve an endpoint switch. Keep this exact +20 model/voicepack as the new
reference. The separate [pronunciation/prosody experiment](../kikiri-anna-pronunciation-2026-10-27/README.md)
investigates those two residual issues without changing this checkpoint or
training more epochs automatically.
@@ -0,0 +1,116 @@
# Anna +20: Vögel pronunciation and separate prosody test · 27 October 2026
Michael hears `anna-full20-plus20-expressive.wav` as almost the original Anna,
with two residual issues: **Vögel → Wögel** and a slight robotic character.
Preserve that exact model and voicepack; do not activate a new TTS endpoint,
train more, edit clients or unload Qwen for this bounded CPU experiment.
## Diagnosis and controlled comparison
The actual installed German DEG2P/espeak pipeline outputs `vˈøːɡəl` for
**Vögel**: IPA /v/ is the voiced sound of German W here. **Vogel** already
receives `fˈoːɡəl`. Vögeln/Vögelchen show the same plural-stem issue. These
words have no existing package override. This is a concrete frontend error
before neural synthesis, not a diagnosis based solely on STT.
`pronunciation.py` is an **experiment-only** exact correction of that stem
to /f/. It requires a corresponding Vögel/Vögeln/Vögelchen word in the text,
handles NFC/NFD text, and leaves all other phonemes unchanged. It never replaces
all V/W letters or /v/ phonemes. Controls include Vogel, Vogelhaus, Vogelstimmen,
wieder, Wörter, Vase, Ventil, Video, Vulkan, vier, viel, Vater and literal Wögel.
This does not modify the installed package, the central Athena text enhancer,
training labels, checkpoint, repository input text or production worker.
Four synthetic WAVs use the same +20 model/voicepack and four CPU threads:
1. Exact expressive baseline, required to match the selected WAV SHA-256.
2. Same full expressive paragraph, changing only the erroneous /v/ to /f/.
3. The corrected expressive text synthesized as six separate sentences with
120 ms of additional silence between them. This tests shorter prosody context,
not a proven remedy for robotic timbre. No pitch shift, denoising, resampling,
time stretch or new voice embedding is applied.
4. Corrected story paragraph, to check the word in a second context.
Only the fixed synthetic passages use this trivial sentence split; it is not
a robust production splitter for abbreviations, dates or arbitrary German.
The sentence arm changes context and adds pauses, so any listening difference
cannot be attributed to the pronunciation correction alone. Do not claim
robotic character is reduced from STT, file metrics or loss values.
## Native runtime and retained data
Explicit read-only dependencies, versions, pinned code and private-data lineage
are in the [selected checkpoint experiment](../kikiri-anna-full20-continuation-2026-10-27/README.md)
and its linked original setup. Reuse the existing standalone Python 3.11.18
CPU-only Torch 2.6.0 environment, pinned Kokoro/Misaki/Kikiri sources, espeak
loader and model files. Install nothing and create no persistent service.
Own private root: `/data/athena-kikiri-anna-pronunciation-20261027`, mode 0700.
Run `experiment.py` with
`/data/athena-kikiri-victoria-cpu-20261027/venv/bin/python` in a transient
systemd unit: quota 400%, allowed CPUs 2–5/8–11, nice 10, memory 3 GiB/no swap,
private network/devices, read-only system, own root writable, limit 180 s.
GPU visibility is disabled and CPU-only Torch is asserted. No model requests
or production profile changes are made. `score.py` runs local Parakeet with
two threads in another limited CPU unit. Capture relevant before/after hashes
and worker PIDs, and independently rehash the selected model/voicepack.
A fresh native host must reproduce the explicit parent environment and restore
the private selected model/voicepack; these experiments are not a native
installer or a complete encrypted restore test. No new backup is created.
Only scripts, synthetic metrics and listening verdicts enter Git; private Anna
recordings/transcripts, weights, operator keys and production snapshots do not.
## Sources checked
- [Pinned German G2P](https://github.com/semidark/misaki/blob/6d252a2e02f3b030f22f56686f1a73786c16ffc8/misaki/de.py).
- [German pipeline upstream proposal](https://github.com/hexgrad/kokoro/pull/317).
- [Kikiri source and documented troubleshooting](https://github.com/semidark/kikiri-tts).
- The installed source and its actual phoneme output, rather than an assumed
dictionary pronunciation or a claim of an official vendor fix.
## Results
All four renders completed successfully. The baseline reproduced the selected
`anna-full20-plus20-expressive.wav` byte for byte. Eighteen actual G2P controls
passed; the full-paragraph fixed arm changes exactly one /v/ to /f/ and no
other phoneme. Original model/voicepack SHA-256 remained unchanged.
| Arm | Audio | CPU generation | RTF | ASR word edits |
| --- | --- | --- | --- | --- |
| Selected +20 baseline | 15.550 s | 5.164 s | 0.3321 | 1: Wögel |
| Vögel fixed, whole paragraph | 15.525 s | 5.315 s | 0.3423 | 0 |
| Vögel fixed, six sentences | 18.800 s | 4.734 s | 0.2518 | 0 |
| Vögel fixed, second story | 15.550 s | 4.722 s | 0.3037 | 0 |
Parakeet recognized **Vögel** correctly in all three corrected outputs; all
remaining normalized words matched. Punctuation differences are not scored.
This provides evidence for the targeted pronunciation correction. It does
not certify naturalness, Anna identity or removal of the robotic character.
That separate listening comparison is pending. The six-sentence output includes
five explicit 120-ms gaps (0.600 s total); its longer duration also reflects
the model's different sentence-boundary timing. Do not count the added silence
as speech throughput or claim a general speedup from these single renders.
Every file is mono 24-kHz PCM16, finite, with zero clipped samples and zero
dropped phonemes. Copied local WAVs match their recorded hashes and durations.
Model load is reported separately; the timing table excludes load and includes
the actual generation path after warmup. No pitch correction or sound filter
was used. The original preferred +20 file remains available unchanged.
Relevant production configuration hashes, CPU TTS PIDs, Deck start time and
**the same running Strata PID** were unchanged across the complete experiment.
No production model request, unload, reload or service restart occurred.
Both transient test units exited successfully and no permanent process remains.
Michael subsequently reiterated the operational constraint explicitly:
**Strata/Qwen must remain loaded now.** Do not use any earlier GPU-training
permission to unload it. This comparison was already CPU-only and had preserved
Qwen. Further work under this constraint must not free its GPUs or interrupt
its requests. Active TTS remains unchanged; no production correction is installed.
Local listening files:
`/Users/mike_i386/Documents/ChatGPT/Athena Deck/work/kikiri-anna-pronunciation-20261027/audio/anna-plus20-voegel-fixed.wav`
and `anna-plus20-sentences-fixed.wav`. Baseline and corrected-story files are
retained in the same directory. Scripts/results are versioned; WAVs stay outside
Git. No native/client playback integration or fresh-host restore is certified.
@@ -0,0 +1,150 @@
"""CPU-only pronunciation correction and a separate sentence-prosody comparison."""
from pathlib import Path
import os, sys, json, time, hashlib, random, re
ROOT = Path('/data/athena-kikiri-anna-pronunciation-20261027')
PARENT = Path('/data/athena-kikiri-anna-full20-next-20261027')
PUBLIC = Path('/data/athena-kikiri-victoria-cpu-20261027')
os.umask(0o077)
ROOT.mkdir(exist_ok=True, mode=0o700)
(ROOT/'tmp').mkdir(exist_ok=True, mode=0o700)
os.environ.update(CUDA_VISIBLE_DEVICES='', HF_HUB_OFFLINE='1',
HF_HUB_DISABLE_TELEMETRY='1', HF_HUB_DISABLE_IMPLICIT_TOKEN='1',
HF_HOME=str(ROOT/'cache/huggingface'), TMPDIR=str(ROOT/'tmp'),
XDG_CACHE_HOME=str(ROOT/'cache'), OMP_NUM_THREADS='4',
OPENBLAS_NUM_THREADS='1', TOKENIZERS_PARALLELISM='false')
import numpy as np
import soundfile as sf
import torch, torch._dynamo
from kokoro import KModel, KPipeline
from pronunciation import correct
sys.path.append(str(PARENT))
from support import snapshot
def write(name, value):
(ROOT/name).write_text(json.dumps(value, indent=2, ensure_ascii=False))
def sha(path):
with path.open('rb') as f:
return hashlib.file_digest(f, 'sha256').hexdigest()
assert torch.version.cuda is None and not torch.cuda.is_available()
torch.set_num_threads(4)
torch.set_num_interop_threads(1)
os.sched_setaffinity(0, {2,3,4,5,8,9,10,11})
before = snapshot()
write('production-before.json', before)
model_path = PARENT/'models/extra-20/model.pth'
voice_path = model_path.parent/'voice.pt'
initial_hashes = [sha(model_path), sha(voice_path)]
selected = json.loads((PARENT/'cpu-plus20.json').read_text())
assert initial_hashes == [selected['model_sha256'], selected['voice_sha256']]
report = dict(model_sha256=initial_hashes[0], voice_sha256=initial_hashes[1],
device='cpu', threads=4, seed=42, sample_rate=24000, complete=False, runs=[])
started = time.monotonic()
random.seed(42); np.random.seed(42); torch.manual_seed(42)
model = KModel(repo_id='hexgrad/Kokoro-82M', config=str(PUBLIC/'source/training/config.json'),
model=str(model_path)).to('cpu').eval()
weights = torch.load(model_path, map_location='cpu', weights_only=True)
for name, state in weights.items():
component = getattr(model, name)
state = {k.removeprefix('module.'): v for k,v in state.items()}
result = component.load_state_dict(state, strict=False)
assert not result.unexpected_keys
current = component.state_dict()
for key in result.missing_keys:
path, param = key.rsplit('.',1)
layer = component.get_submodule(path)
assert isinstance(layer, torch.nn.InstanceNorm1d) and layer.affine
assert param in ('weight','bias')
assert torch.all(current[key] == (1 if param == 'weight' else 0))
state[key] = current[key]
component.load_state_dict(state, strict=True)
del weights
voice = torch.load(voice_path, map_location='cpu', weights_only=True)
assert voice.shape == (510,1,256) and torch.isfinite(voice).all()
pipeline = KPipeline(lang_code='d', repo_id='hexgrad/Kokoro-82M', model=model, device='cpu')
g2p = pipeline.g2p
report['model_load_seconds'] = time.monotonic()-started
report['parameters'] = sum(p.numel() for p in model.parameters())
checks = []
for text in ('Vogel','Vögel','Vögeln','Vögelchen','Vogelhaus','Vogelstimmen',
'wieder','Wörter','Vase','Ventil','Video','Vulkan','vier','viel','Vater',
'Wögel','Vögel singen.','Die Vögel suchen Schutz.'):
original = g2p(text)[0].replace('ʏ','y')
fixed = correct(text, original)
expected_change = text in ('Vögel','Vögeln','Vögelchen','Vögel singen.','Die Vögel suchen Schutz.')
assert (fixed != original) == expected_change, text
if expected_change:
assert fixed == original.replace('vˈøːɡəl','fˈøːɡəl')
checks.append(dict(text=text, before=original, after=fixed, changed=fixed!=original))
report['phoneme_controls'] = checks
def render(text, arm, fixed=False, sentences=False, save=True):
def front(s):
ps, tokens = g2p(s)
ps = ps.replace('ʏ','y')
return (correct(s, ps) if fixed else ps), tokens
pipeline.g2p = front
# Sentence list is a test of shorter model context, not an automatic
# production splitter. It is safe only for these fixed synthetic passages.
pieces = re.split(r'(?<=[.!?])\s+',text) if sentences else [text]
random.seed(42); np.random.seed(42); torch.manual_seed(42)
started = time.monotonic()
chunks=[]; phones=[]; gaps=0
for r in pipeline(pieces, voice=voice, speed=1):
assert len(r.phonemes)<=510
x = r.audio.detach().cpu().numpy().reshape(-1)
assert np.isfinite(x).all()
if sentences and chunks:
chunks.append(np.zeros(2880,dtype=np.float32)); gaps+=1
chunks.append(x); phones.append(r.phonemes)
elapsed = time.monotonic()-started
x = np.concatenate(chunks)
duration = len(x)/24000
dropped = sorted({c for ps in phones for c in ps if c not in model.vocab})
assert not dropped and not np.any(np.abs(x)>=1)
row = dict(arm=arm,text=text,phonemes=phones,segments=len(phones),
gap_seconds=gaps*.12, duration_seconds=duration,generation_seconds=elapsed,
rtf=elapsed/duration,realtime_multiple=duration/elapsed,
clipped_fraction=float(np.mean(np.abs(x)>=1)),dropped=dropped)
if save:
path=ROOT/'outputs'/f'anna-plus20-{arm}.wav'
sf.write(path,x,24000,subtype='PCM_16')
row.update(file=path.name,sha256=sha(path))
return row
(ROOT/'outputs').mkdir(exist_ok=True,mode=0o700)
report['warmup'] = render('Die Stimme ist bereit.','warmup',save=False)
expressive = next(r for r in selected['runs'] if r['case']=='expressive')
story = next(r for r in selected['runs'] if r['case']=='story')
try:
base = render(expressive['text'],'baseline')
assert base['sha256']==expressive['sha256'],'Selected +20 baseline must reproduce exactly'
base['matches_selected_parent']=True
report['runs'].append(base)
fixed = render(expressive['text'],'voegel-fixed',fixed=True)
assert fixed['phonemes'] == [p.replace('vˈøːɡəl','fˈøːɡəl') for p in base['phonemes']]
report['runs'].append(fixed)
report['runs'].append(render(expressive['text'],'sentences-fixed',fixed=True,sentences=True))
report['runs'].append(render(story['text'],'story-fixed',fixed=True))
report['complete']=True
finally:
after = snapshot()
report['preservation'] = dict(files_equal=before['hashes']==after['hashes'],
cpu_tts_pids_equal=before['pids']['articulino']==after['pids']['articulino'] and before['pids']['qwen_tts']==after['pids']['qwen_tts'],
deck_start_equal=before['deck_started']==after['deck_started'],
strata_pids_equal=before['pids']['strata']==after['pids']['strata'],
selected_exports_unchanged=initial_hashes==[sha(model_path),sha(voice_path)])
write('production-after.json',after)
write('results.json',report)
print(json.dumps(dict(complete=report['complete'],preservation=report['preservation'],
runs=[{k:r[k] for k in ('arm','duration_seconds','generation_seconds','rtf')} for r in report['runs']])),flush=True)
assert all(report['preservation'].values())
@@ -0,0 +1,12 @@
"""Experimental exact Vögel-form correction; never a general v -> f rule."""
import re
import unicodedata
WORD = re.compile(r'\bvögel(?:n|chen)?\b', re.IGNORECASE)
PHONE = re.compile(r'(?<!\S)v(?=ˈøːɡəl(?:n|çən)?(?=[\s.,!?;:]|$))')
def correct(text, phonemes):
if not WORD.search(unicodedata.normalize('NFC', text)):
return phonemes
return PHONE.sub('f', phonemes)
@@ -0,0 +1,219 @@
{
"model_sha256": "eac26cd33205c3ea3054102943ea956dd9f56e1751a5203bb7788fbbfd3d7d53",
"voice_sha256": "5c5f913c31155bc55c89076b1c46d58f4a843b45494e3b8dacfa9851484a8ee7",
"device": "cpu",
"threads": 4,
"seed": 42,
"sample_rate": 24000,
"complete": true,
"runs": [
{
"arm": "baseline",
"text": "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.",
"phonemes": [
"ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl. ʃˈøːn, das duː vˈiːdɜ dɑː bɪst! dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː vˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax. vˈɪɾklɪç? das hˌɛtə ɪç nˈɪçt ɡədˈaxt. hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə."
],
"segments": 1,
"gap_seconds": 0.0,
"duration_seconds": 15.55,
"generation_seconds": 5.164399272005539,
"rtf": 0.3321157088106456,
"realtime_multiple": 3.010998797922401,
"clipped_fraction": 0.0,
"dropped": [],
"file": "anna-plus20-baseline.wav",
"sha256": "8b1637e291e7be611577e8861ec5bafa40a629e728a2fbd53f89e0963790ce4b",
"matches_selected_parent": true
},
{
"arm": "voegel-fixed",
"text": "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.",
"phonemes": [
"ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl. ʃˈøːn, das duː vˈiːdɜ dɑː bɪst! dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː fˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax. vˈɪɾklɪç? das hˌɛtə ɪç nˈɪçt ɡədˈaxt. hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə."
],
"segments": 1,
"gap_seconds": 0.0,
"duration_seconds": 15.525,
"generation_seconds": 5.314719881993369,
"rtf": 0.34233300367107045,
"realtime_multiple": 2.921132316417983,
"clipped_fraction": 0.0,
"dropped": [],
"file": "anna-plus20-voegel-fixed.wav",
"sha256": "7b0c2c21cd7346d196df7b43f3b9acd0733c487bd7e0ba9d20f91216ea29708e"
},
{
"arm": "sentences-fixed",
"text": "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.",
"phonemes": [
"ɡˈuːtən mˈɔɾɡən, mˈɪçaˌeːl.",
"ʃˈøːn, das duː vˈiːdɜ dɑː bɪst!",
"dɾˈWsən rˈWʃt dɛɾ rˈeːɡən, ʊnt diː fˈøːɡəl zˈuːxən ʃˈʊʦ ˌʊntɜ deːm dˈax.",
"vˈɪɾklɪç?",
"das hˌɛtə ɪç nˈɪçt ɡədˈaxt.",
"hˈɔøtə nˈeːmən viːɾ ʊns In vˈeːnɪç ʦˈIt ʊnt mˈaxən ˈaləs ɡˌanʦ ɪn rˈuːə."
],
"segments": 6,
"gap_seconds": 0.6,
"duration_seconds": 18.8,
"generation_seconds": 4.7344671030004974,
"rtf": 0.25183335654257966,
"realtime_multiple": 3.9708798458194767,
"clipped_fraction": 0.0,
"dropped": [],
"file": "anna-plus20-sentences-fixed.wav",
"sha256": "36ecc1b4082132b08d12dfa84bd226263833e0b7d51b7fd97f91a5ebba44d2c3"
},
{
"arm": "story-fixed",
"text": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.",
"phonemes": [
"vˌɛn duː mˈɑːkst, ɛɾʦˈɛːlə ɪç diːɾ ˌInə kˈʊɐʦə ɡəʃˈɪçtə. ˈanɑː ˈœfnətə das fˈɛnstɜ ʊnt hˈœɾtə dɾˈI fˈøːɡəl zˈɪŋən. Wf deːm tˈɪʃ lˈɑːɡən zˈiːbən bˈyːçɜ ʊnt ˌInə rˈoːtə tˈasə. ʦʊm ʃlˈʊs zˈɑːɡtə ziː: das hat vˈʊndɜbˌɑːɾ fʊŋkʦjˌoːnˈiːɾt."
],
"segments": 1,
"gap_seconds": 0.0,
"duration_seconds": 15.55,
"generation_seconds": 4.721927430990036,
"rtf": 0.3036609280379444,
"realtime_multiple": 3.2931467556966814,
"clipped_fraction": 0.0,
"dropped": [],
"file": "anna-plus20-story-fixed.wav",
"sha256": "047e16e8f978160616c22e78897c3304a990b3be871e2886987d0f8ea34470c5"
}
],
"model_load_seconds": 0.9981255110033089,
"parameters": 81810022,
"phoneme_controls": [
{
"text": "Vogel",
"before": "fˈoːɡəl",
"after": "fˈoːɡəl",
"changed": false
},
{
"text": "Vögel",
"before": "vˈøːɡəl",
"after": "fˈøːɡəl",
"changed": true
},
{
"text": "Vögeln",
"before": "vˈøːɡəln",
"after": "fˈøːɡəln",
"changed": true
},
{
"text": "Vögelchen",
"before": "vˈøːɡəlçən",
"after": "fˈøːɡəlçən",
"changed": true
},
{
"text": "Vogelhaus",
"before": "fˈoːɡəlhˌWs",
"after": "fˈoːɡəlhˌWs",
"changed": false
},
{
"text": "Vogelstimmen",
"before": "fˈoːɡəlstˌɪmən",
"after": "fˈoːɡəlstˌɪmən",
"changed": false
},
{
"text": "wieder",
"before": "vˈiːdɜ",
"after": "vˈiːdɜ",
"changed": false
},
{
"text": "Wörter",
"before": "vˈœɾtɜ",
"after": "vˈœɾtɜ",
"changed": false
},
{
"text": "Vase",
"before": "vˈɑːzə",
"after": "vˈɑːzə",
"changed": false
},
{
"text": "Ventil",
"before": "vɛntˈiːl",
"after": "vɛntˈiːl",
"changed": false
},
{
"text": "Video",
"before": "vˈiːdeːˌoː",
"after": "vˈiːdeːˌoː",
"changed": false
},
{
"text": "Vulkan",
"before": "vʊlkˈɑːn",
"after": "vʊlkˈɑːn",
"changed": false
},
{
"text": "vier",
"before": "fˈiːɾ",
"after": "fˈiːɾ",
"changed": false
},
{
"text": "viel",
"before": "fˈiːl",
"after": "fˈiːl",
"changed": false
},
{
"text": "Vater",
"before": "fˈɑːtɜ",
"after": "fˈɑːtɜ",
"changed": false
},
{
"text": "Wögel",
"before": "vˈøːɡəl",
"after": "vˈøːɡəl",
"changed": false
},
{
"text": "Vögel singen.",
"before": "vˈøːɡəl zˈɪŋən.",
"after": "fˈøːɡəl zˈɪŋən.",
"changed": true
},
{
"text": "Die Vögel suchen Schutz.",
"before": "diː vˈøːɡəl zˈuːxən ʃˈʊʦ.",
"after": "diː fˈøːɡəl zˈuːxən ʃˈʊʦ.",
"changed": true
}
],
"warmup": {
"arm": "warmup",
"text": "Die Stimme ist bereit.",
"phonemes": [
"diː ʃtˈɪmə ɪst bərˈIt."
],
"segments": 1,
"gap_seconds": 0.0,
"duration_seconds": 2.275,
"generation_seconds": 0.5962673339963658,
"rtf": 0.262095531426974,
"realtime_multiple": 3.8154027066219696,
"clipped_fraction": 0.0,
"dropped": []
},
"preservation": {
"files_equal": true,
"cpu_tts_pids_equal": true,
"deck_start_equal": true,
"strata_pids_equal": true,
"selected_exports_unchanged": true
}
}
@@ -0,0 +1,30 @@
"""Local Parakeet measures words, not perceived robotic timbre or speaker identity."""
from pathlib import Path
import json, re, subprocess, time
ROOT=Path('/data/athena-kikiri-anna-pronunciation-20261027')
BASE=Path('/opt/athena-deck-dev/runtime/state/parakeet-runtime/v0.6.1')
CLI=BASE/'runtime/parakeet-v0.6.1-bin-linux-cpu-x64/parakeet-cli'
def edits(a,b):
previous=list(range(len(b)+1))
for i,x in enumerate(a,1):
row=[i]
for j,y in enumerate(b,1):
row.append(min(row[-1]+1,previous[j]+1,previous[j-1]+(x!=y)))
previous=row
return previous[-1]
data=json.loads((ROOT/'results.json').read_text());assert data['complete']
rows=[]
for r in data['runs']:
started=time.monotonic()
p=subprocess.run([str(CLI),'transcribe','--model',str(BASE/'redux-packed.gguf'),
'--input',str(ROOT/'outputs'/r['file']),'--lang','de','--threads','2','--json'],
capture_output=True,text=True,timeout=90)
assert p.returncode==0,p.stderr[-300:]
text=json.loads(p.stdout)['text']
a=re.findall(r'\w+',r['text'].casefold());b=re.findall(r'\w+',text.casefold())
rows.append(dict(arm=r['arm'],file=r['file'],expected=r['text'],recognized=text,
word_edits=edits(a,b),reference_words=len(a),seconds=time.monotonic()-started))
(ROOT/'transcriptions.json').write_text(json.dumps(rows,indent=2,ensure_ascii=False))
print(json.dumps(rows,ensure_ascii=False),flush=True)
@@ -0,0 +1,38 @@
[
{
"arm": "baseline",
"file": "anna-plus20-baseline.wav",
"expected": "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.",
"recognized": "Guten Morgen Michael, schön, dass du wieder da bist, draußen rauscht der Regen und die Wö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.",
"word_edits": 1,
"reference_words": 40,
"seconds": 1.2831792600045446
},
{
"arm": "voegel-fixed",
"file": "anna-plus20-voegel-fixed.wav",
"expected": "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.",
"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.",
"word_edits": 0,
"reference_words": 40,
"seconds": 1.1994554069970036
},
{
"arm": "sentences-fixed",
"file": "anna-plus20-sentences-fixed.wav",
"expected": "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.",
"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.",
"word_edits": 0,
"reference_words": 40,
"seconds": 1.461609172009048
},
{
"arm": "story-fixed",
"file": "anna-plus20-story-fixed.wav",
"expected": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie: Das hat wunderbar funktioniert.",
"recognized": "Wenn du magst, erzähle ich dir eine kurze Geschichte. Anna öffnete das Fenster und hörte drei Vögel singen. Auf dem Tisch lagen sieben Bücher und eine rote Tasse. Zum Schluss sagte sie, das hat wunderbar funktioniert.",
"word_edits": 0,
"reference_words": 36,
"seconds": 1.1835084810008993
}
]
@@ -1,9 +1,11 @@
# CPU TTS replacement shortlist · 27 October 2026
Michael's latest listening decision replaces Articulino on the serious-candidate
shortlist with **Sopro V2 Turbo**. His preferred sample is **technical B**, using
Anna reference B: it is the closest approximation of Anna so far and surpasses
Articulino, but is still not perfect or accepted as a production replacement.
Michael previously replaced Articulino on the serious-candidate shortlist with
**Sopro V2 Turbo technical B**, using Anna reference B. His newest listening
decision selects the further-trained **Kikiri Anna full20 +20** checkpoint:
he hears it as almost the original Anna, with residual Vögel/Wögel pronunciation
and slight robotic character. Keep Sopro B as a retained comparison; neither
candidate is accepted or activated as a production replacement by this feedback.
His requirements are substantial CPU speed reserve, natural German and a convincing Anna voice.
Word recognition alone cannot accept voice identity or sound quality. No model
switch or new installation is authorized merely by this shortlist discussion.
@@ -18,7 +20,7 @@ record the verdict and clean up its own test data when requested.
| Qwen3-TTS 0.6B Q4 / Q8 codec | Retained comparison reference | Same three clips/text gave about 15 s in 14.111–14.645 s. This passage was complete in STT; previous intermittent noise failures remain unresolved. This row makes no claim about which profile is currently published. |
| Chatterbox Nano + German community LoRA, FP32 | **Stronger perceived Anna identity; accent and CPU reserve unresolved** | Explicit Athena trial: Anna B, four CPU threads, adapter merged in RAM, 16.98 s audio in 14.815 s (RTF 0.8725, 1.146× realtime), first synthesis. No warm repeat or quality matrix after missing the 2× gate. Michael hears Anna more clearly, with a slight Chinese-sounding accent. He confirms “rote Tasse” is correct: the raw STT “hohe Tasse” was an ASR error, not a confirmed TTS word error. No general claim about untested precision/runtime alternatives. No activation; Sopro technical B remains the reference. [Actual trial](chatterbox-nano-de-cpu-2026-10-27/README.md). |
| Kokoro/Kikiri German Victoria, FP32 | **CPU speed gate passed; original Victoria listening verdict pending** | Explicit CPU-only test with the public Victoria voice: story 14.5 s in 4.24–4.78 s; technical text 19 s in 6.70 s (2.84× realtime). Local STT recovered numbers/time; technical term discrepancies remain, and the frontend pronounces CEST as a word. This is not an Anna-cloning sample or proof that Anna fine-tuning will work. That original Victoria trial did not train or activate a model. A separately authorized Anna pilot is now recorded below. [Victoria trial](kikiri-victoria-cpu-2026-10-27/README.md). |
| Kokoro/Kikiri Anna fine-tune, FP32 | **Selected full20 starting point continued; new listening verdict pending** | The original 15-minute Anna recording supplies 63 training clips / 12m11s, with separate validation/held-out clips. Initial technical sample: 20.175 s in 6.840 s on four CPU threads (2.95× realtime). Michael wants a closer Anna match and less perceived Chinese-sounding accent; technical word preparation is separate. After the earlier continuation/export comparisons, he selected `anna-full20-expressive.wav` as the starting point. Twenty further lower-LR epochs from its exact model used the original large recording, never the synthetic sample. +10/+20 samples retain 3.27–3.38× CPU realtime; the parent reproduces byte for byte. All six synthetic passages have the same ASR Vögel/Wögel discrepancy, with no evidence here for accent removal or stronger identity. No new human listening verdict or activation; active TTS unchanged, Qwen restored. Sopro B remains the comparison reference. [Anna pilot](kikiri-anna-training-2026-10-27/README.md), [first follow-up](kikiri-anna-followup-2026-10-27/README.md), [selected full20 continuation](kikiri-anna-full20-continuation-2026-10-27/README.md). |
| Kokoro/Kikiri Anna fine-tune, FP32 | **Michael's selected +20: almost original Anna; residual robotic character** | The original 15-minute Anna recording supplies 63 training clips / 12m11s, with separate validation/held-out clips. The exact model behind `anna-full20-expressive.wav` was continued twenty lower-LR epochs, never using synthetic training audio. +10/+20 samples retained 3.27–3.38× CPU realtime. Michael now hears `anna-full20-plus20-expressive.wav` as almost the original Anna, with audible Wögel and a slight robotic character. The independent CPU-only follow-up found incorrect /v/ in the installed G2P plural stem; a narrowly targeted /f/ correction yields zero ASR word discrepancies in both fixed passages. A separate shorter-sentence listening test is pending; no robot-removal claim. The selected weights, active TTS and running Qwen remain unchanged. **Qwen must not be unloaded now.** [Anna pilot](kikiri-anna-training-2026-10-27/README.md), [first follow-up](kikiri-anna-followup-2026-10-27/README.md), [+20 continuation](kikiri-anna-full20-continuation-2026-10-27/README.md), [pronunciation/prosody test](kikiri-anna-pronunciation-2026-10-27/README.md). |
| Audio8 TTS Preview 0.1B ONNX INT8 | **Rejected and deleted** | CPU speed fails; Michael also reports a Chinese-sounding accent. All isolated weights, venv, derived voices, pilot data and audio deleted remotely and locally: about 1.49 GiB on Athena plus 8.3 MiB local. Small records remain in `audio8-cpu-2026-10-27/`. Qwen and Articulino preserved. |
| Pocket TTS German | Already tested, not a newly discovered alternative | Existing 17 October Anna CPU runs had RTF 0.453/0.462. Do not present it as untested or claim the newly advertised tiny English models support German. A different German checkpoint/recipe would need a specific reason to retest. |
| MOSS-TTS-Nano / NeuTTS-Nano German Q8 | Rejected; test weights removed | Michael rejected pronunciation/naturalness. Do not silently reinstall or rank them as acceptable based on ASR. |