Files

5.0 KiB

Articulino CPU runtime

Pinned source: eigenhand/articulino-onnx commit 143d6dd5bbd67a02564be30f15bd8a578dda4987 (package 1.0.0, Apache-2.0). Public weights: eigenhand/Articulino-DE-EN-Realtime-Stream-TTS-ONNX, revision a760ce8d513534111c7679751869fa4c45ef0e54. All five FP32 graphs, config, LICENSE, NOTICE and publisher checksums are fixed in assets.json with SHA256. The source archive is independently SHA256-pinned in requirements.lock. No PyTorch, CUDA, external synthesis API or extra service is used.

Install / native Debian / import

Prerequisites on supported Debian: Python >=3.10 with venv/pip, Git (shared installer prerequisite), libsndfile1 and ffmpeg. Qualified application runtime: Python 3.12, ONNX Runtime 1.23.2, numpy 2.2.6, soundfile 0.13.1 and the complete lockfile. Install OS prerequisites as administrator; run bootstrap as the Deck service user, with the real writable state directory:

python3 deploy/articulino/bootstrap.py --state /var/lib/athena-deck

Equivalent UI: TTS → Einrichten → Articulino-CPU-Laufzeit installieren. Bootstrap installs an independent environment in STATE/articulino-runtime/ID, checks every public file, then marks the runtime ready and imports the main ONNX weight into the model library. Existing weights are not replaced. No profile is auto-created/published and no private voice is downloaded. A verified local model directory can be imported using download.py --source DIRECTORY --destination NEW_RUNTIME/model; that validates all hashes rather than trusting the experiment cache. The normal bootstrap can also redownload all assets from their pinned public source. Test folders are not dependencies.

Create an audio profile using the authenticated Deck UI, or, only with Deck stopped at confirmed idle, run python3 deploy/articulino/register_profile.py --state STATE --deck-is-stopped as its service user. This operator helper is idempotent and does not change endpoint publication. The profile uses the imported fp32/dit_step.onnx, speed=1, API ID articulino-anna-cpu. The complete remaining graph bundle belongs to this runtime. Keep this profile disabled initially. Stored default voice comes from STATE/speech-voices/default.json, resolving to e.g. speech-voices/Anna/reference.wav; never replace it during installation. Articulino uses at most the first eight seconds. It approximates Anna's timbre; it is not equivalent to Qwen's accepted voice fidelity.

Endpoint and residency

Supports /v1/audio/speech with WAV, MP3 and streamed PCM16 mono 24 kHz. voice=default, German, speed=1. Stable client model alias tts resolves only when exactly one TTS profile is published. To switch, disable Qwen's endpoint publication and enable Articulino (reverse to return to Qwen). No Hermes or Mac-app configuration change is necessary. Two simultaneous published TTS profiles make model=tts ambiguous and intentionally return 409.

The worker runs locally in Deck's CPU affinity pool, four ONNX threads, nice10. It does not reserve VRAM, evict Strata or use the GPU scheduler. Automatic residency follows endpoint publication. A warm pinned profile disabled at the endpoint yields to the sole published profile, without rewriting the user's stored preference. Currently active production profile/settings are not changed by creation of a disabled candidate. Cancellation is cooperative between complete sentences; there is no claim of interrupting an ONNX sentence midway. Bounded inputs (1000 characters), outputs (32 MiB) and 600-second worker deadline match the existing serial TTS job protocol. Common Deck speech preparation is followed by Articulino's native German frontend and sentence segmentation.

Backup / restore / update

Configuration backups now record the Articulino runtime recipe and source revision. Restore installs that pinned environment/bundle before reconstructing profiles and downloads the main library weight with its original checksum. Private speech-voices data remains part of the encrypted full media backup; a settings-only backup cannot recreate a private voice. Do not commit voices, generated audio or model files. A fresh-Debian end-to-end encrypted restore has not been tested and is not claimed by this change.

Deploy new app files using the existing service deployment method. For the current read-only Docker installation a thin image on the verified current base is sufficient; no large base-image rebuild/consolidation is required. Restart only at confirmed idle, after all active/queued API work and setup jobs finish, and restore the previously active chat profile. Native deployments use the same files/runtime/state and their normal service restart. No host reboot.

For rollback, publish the previous Qwen profile again (and disable Articulino), then use the previous verified app release if necessary. Do not delete Qwen weights, its environment or Anna. Install failures must not destroy an existing working runtime. An update to Articulino source/graphs requires new pins, hashes, CPU correctness/speed and speech checks before activation.