Normalize technical German TTS vocabulary and distinguish byte and bit units

This commit is contained in:
Mikei386 committed 2026-10-19 22:58:02 +02:00
1 parent 9439230887
commit 53cbbb6b66
6 files changed
+197 -3

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
## Technical TTS vocabulary · 19 October 2026
Central speech preparation now distinguishes MB/MiB/Mbit and rate suffixes,
spells hardware/network acronyms and supplies Homelab pronunciation hints.
Activated at endpoint idle; 33 tests pass, no Mac or Hermes changes.
[Coverage, verification and restore](maintenance/2026-10-19-tts-technical.md).
## German TTS abbreviations · 19 October 2026
Central expansion of u.a., z.B., d.h., i.d.R., bzw., ggf. and other common
@@ -0,0 +1,81 @@
# Technical German speech preparation · 19 October 2026
`speech_text.prepare_technical_german` supplies shared, deterministic speech-only
technical normalization. The endpoint-wide enhancer invokes it before path
rendering; Qwen invokes it before sentence splitting. No model/network dependency.
German only; displayed messages, stored configuration and files are not rewritten.
## Coverage
| Input | Spoken text |
| --- | --- |
| MB / MiB | Megabyte / Mebibyte |
| GB / GiB | Gigabyte / Gibibyte |
| KB, kB, KiB, TB, TiB, PB, PiB | decimal/binary names, preserving numbers |
| MB/s / Mb/s / Mbit/s | Megabyte / Megabit / Megabit pro Sekunde |
| MiB/s, Gbit/s, Mbps | Mebibyte / Gigabit / Megabit pro Sekunde |
| kHz, MHz, GHz, Hz | Kilohertz, Megahertz, Gigahertz, Hertz |
| ms, µs, ns | Millisekunden, Mikrosekunden, Nanosekunden |
| numeric W, kW, Wh, kWh, V, mV, A, mA | electrical unit names |
| CPU, GPU, SSD, HDD, NVMe, USB, PCIe | explicit spoken letter sequences |
| RAM, VRAM | Arbeitsspeicher, Grafikspeicher |
| SSH, HTTP(S), API, DNS, DHCP, TCP, UDP, IP(v4/v6), VPN | letter sequences |
| NAS, LAN, WLAN | pronunciation hints |
| IOPS | Ein- und Ausgabeoperationen pro Sekunde |
| TTS, STT, MCP, LLM, SQL, CLI, GUI, UID, GID | letter sequences |
| ext4, XFS, ZFS, NTFS, FAT32 | filesystem pronunciation hints |
| Unraid / Sonarr / Radarr | Anraid / Sonar / Radar |
| Logfile(s), Logrotate / Log Rotate | Logdatei(en), Log Rotation |
| Filesystem(s), Home-Assistant, SmartHome | Dateisystem(e), Home Assistant, Smart Home |
Docker, Home Assistant and Smart Home already have normal word spellings and
stay unchanged. No blanket phonetic respelling of every English product name.
Unit matching is **case sensitive**: bits must never become bytes. This only
expands names, with no numerical conversion (GB does not become GiB).
Ambiguous standalone m, s, A, W, B are not globally expanded. Numeric B/s and
bit/s are supported. Compound identifiers and unlisted forms remain unchanged.
The new helper protects inline code, HTTP URLs, mail, absolute Linux/Windows
paths, filename fragments and dotted entity IDs. Tests include sensor.GPU,
RAM.log, CPU_LIMIT, /mnt/SSD, Windows paths and URLs. Existing downstream
speech formatting can still render paths or remove code markup; this is not a
promise that all literal code is spoken byte-for-byte by the whole pipeline.
The lexical rules are idempotent, allowing endpoint and Qwen preparation in series.
## Verification and operation
33 tests pass:
```sh
python3 -m unittest test_speech_text test_tts_text_enhancer test_speech_mp3 test_speech_reference
```
Includes numeric spacing, rates, decimal commas/dots, punctuation, uppercase
byte vs lowercase bit, binary prefixes, protected identifiers, existing German
abbreviations, non-German passthrough, idempotence and API routing.
Prepared test text and the live TTS/STT probe are kept in local
`work/tts-technical-20261019/`. Speech synthesis quality and proper-name
pronunciation require listening; ASR agreement alone is not listening acceptance.
The live audio probe was not started: renewed endpoint activity persisted during
its bounded 45-second idle wait. It exited without submitting a synthesis/STT
request. Thus this change has unit/routing and deployed text preparation checks,
but no new recorded audio acceptance. No probe remains running or scheduled.
Deployment uses the existing installer --update --reuse-runtime against
/opt/athena-deck-dev/runtime after the endpoint becomes idle. Canonical host
source is /opt/athena-deck-dev/source. Both modules already belong to the build
allowlist; no new packages, services, weights or private data. The saved endpoint
enhancer toggle stays enabled. No Mac application or Hermes gateway modifications.
Activated image `athena-deck-standalone:22f6b89a6d119cb3` after observing zero
active endpoint requests. Previous image `e473d5c42108f306` retained for rollback.
Actual deployed enhancer returns `Anraid: 32 Gibibyte Arbeitsspeicher,
120 Megabyte pro Sekunde, 1 Gigabit pro Sekunde.` for the raw example input.
Container is healthy. CPU budget remains 8. Profile/model parameters are unchanged.
Native Debian operation uses the same modules and a normal application restart;
no container-only runtime requirement was added. Restore uses this Git revision
plus existing profiles/state, including endpoint.json. Present container rollback
uses the normal installer --rollback. Full fresh-Debian restore qualification
remains an existing open platform task.