Files
Athena-Deck/docs/experiments/small-tts-2026-10-17/README.md
T

8.5 KiB

Pocket TTS and MOSS-TTS-Nano CPU auditions — 17 October 2026

Requested: test the two small TTS engines alongside loaded Strata, with CPU fallback, and compare AT-Helper. No Deck, Hermes, model profile, existing TTS/STT service, container image, GPU allocation, or default voice changed. No restart.

Conditions and interpretation

Athena Ryzen 5 5600: Strata IQ3 512K remained loaded in the same GPU process (PID 1436023 before/after). Available VRAM was 714 MiB on RTX3060 and 510 MiB on RTX5080; both engines therefore used CPU. This tests coexistence with loaded Strata, not throughput during a simultaneous inference stress test. AT-Helper: Xeon X3450, no AVX; CPU only, RX470 unused. Four Torch/ONNX threads and CPUQuota=400% on each host. Separate transient systemd test units, Athena MemoryMax=6G, Helper MemoryMax=4G, both MemorySwapMax=0. Existing services kept running. Host filesystem test root on each: /opt/athena-small-tts-tests-20261017.

The same synthetic German text is included in result JSON. Two generations per engine/host, one process, model reused. load_seconds starts before imports and ends when model is ready. Pocket preset loading is separate reference_seconds; synthesis timings include producing all streaming chunks. Pocket is stochastic/unseeded, so audio lengths differ. MOSS uses seed42 and the official fixed sampler, max750 frames, streaming codec enabled; generation includes reference processing and WAV writing. No MOSS first-audio latency was measured. RTF=generation_seconds/audio_seconds; below1 means faster than real time.

Pocket language is explicitly german, official juergen preset. Attempting Anna cloning returned the official gated-weight error: acceptance at https://huggingface.co/kyutai/pocket-tts and authenticated download required. The public non-cloning German model/preset works without authentication. No gating bypass, token extraction, or silent English-model substitution. MOSS uses the existing private Anna reference, internally trimmed to6s. The private reference is neither committed nor delivered as a generated sample. Voices therefore differ between engines; this is not a controlled voice-quality ranking.

Sources: https://github.com/kyutai-labs/pocket-tts and https://github.com/OpenMOSS/MOSS-TTS-Nano. Pinned source commits in sources.json. Weights and ONNX codec files are captured by exact HF revision metadata and SHA256 in host manifests. No model weights, reference audio or credentials in Git.

Reproduce on native Debian

Prerequisites: Python3.13, python3-venv, working HTTPS/CA certificates, network access to official PyPI, PyTorch CPU index and public HF model repositories. No CUDA, Docker, Deck-container libraries or production venv required.

  1. Create a private test directory and python3 -m venv venv there.
  2. Fetch each public source archive at the commit in sources.json, preserving pocket-tts-<commit> and MOSS-TTS-Nano-<commit> directory names.
  3. venv/bin/pip install torch==2.7.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cpu
  4. venv/bin/pip install ./pocket-tts-<commit> soundfile onnxruntime transformers==4.57.1 Exact resolved package versions are in each manifest. MOSS's ONNX entrypoint still imports Torch/Torchaudio for reference processing. Its optional WeText Chinese normalization is explicitly disabled via the official API flag for this German, already-spelled-out input; source code is unchanged.
  5. Copy bench.py, manifest.py into the test root. Restore an authorized private6s PCM WAV as reference.wav for MOSS. Pocket uses its public preset.
  6. venv/bin/python bench.py pocket --prepare and ... bench.py moss --prepare download/prepare models. Downloads are excluded from reported cached loading comparisons. Recover exact files using HF revisions/paths/checksums in manifests.
  7. Sequentially venv/bin/python bench.py pocket, then ... bench.py moss, under the resource limits above. Never overlap engines in the comparison.
  8. venv/bin/python manifest.py; venv/bin/pip check must pass.

The first exploratory installation resolved Torch2.14.1/Torchaudio2.11.0. Pocket worked, but MOSS reference loading requested TorchCodec. Corrected to the MOSS project's explicit Torch2.7.0/Torchaudio2.7.0 dependency versions; reran both engines on both hosts for a consistent final comparison. No library monkey patch, source edit, extra codec workaround or production package change.

Generated WAVs are retained in the test root; local delivery copies and MP3s under workspace work/small-tts-20261017/{athena,helper}/. MP3s encoded and fully decoded with local FFmpeg before delivery. Existing local Parakeet Redux STT checks are retained alongside numerical results; these are an intelligibility check, not a listening score or proof of voice similarity.

These are optional experiments, not an installed Deck endpoint or production voice change. Updates mean creating another isolated pinned test environment. Completed transient units require no autostart and leave no resident TTS worker. Public models are recoverable by revision/checksum. Private reference audio stays in the existing encrypted voice backup scope; no full native host restore tested.

Measured results

Host / engine Cached process + model load Generate run1 / run2 Audio run1 / run2 RTF run1 / run2 Peak RSS
athena / pocket 3.08s 4.71s / 4.78s 10.00s / 9.84s 0.471 / 0.485 1000MiB
athena / moss 4.61s 18.78s / 16.73s 12.32s / 12.32s 1.524 / 1.358 2354MiB
helper / pocket 5.64s 8.03s / 7.80s 9.20s / 9.12s 0.872 / 0.856 1003MiB
helper / moss 10.29s 45.43s / 45.42s 12.32s / 12.32s 3.688 / 3.687 2404MiB

Pocket first streamed chunk: Athena0.095/0.133s, Helper0.347/0.323s after synthesis start (model already loaded). Pocket preset load ~0.002s. Helper MOSS initial21.28s model load included downloads; cached loading10.29s was measured separately and is shown above.

STT: Athena Pocket retains the requested words (punctuation/number formatting varies). Helper Pocket returned “testen mir” / “deinen Rechner”. MOSS on both hosts returned “Maiko” and “Kasruhr” for Michael/Karlsruhe. These may reflect synthesis or STT errors; listen to the delivered samples. Neither engine is assigned a subjective quality score.

Both hosts downloaded identical model file content, verified by relative-path/size/SHA256 maps (directory enumeration order differs). Both final pip-checks passed. All own final benchmark and cached-load units finished/inactive. Strata PID1436023 remained loaded. Test environments/models remain available for later experiments, with no new persistent/autostart service.

Follow-up: authorized Anna cloning

After the user accepted the gated model conditions, the unrelated host HF login returned401. That was incorrectly treated as a missing prerequisite; Deck already had a valid configured HF credential. The Deck credential was used only inside the remote download process, never printed, sent into model context, copied to HF-login storage or committed. No further user login was needed.

download-clone.py --credential-file <configured Deck HF JSON path> downloads the pinned German cloning bundle into the isolated test cache. Current authorized state path: /opt/athena-deck-dev/runtime/state/models/huggingface.json; native restore uses its configured state root, not this hardcoded host assumption. Token remains solely in the existing Deck credential/backup scope.

Run venv/bin/python anna.py under the same4-thread/6GiB/no-swap resource limits. Official German cloning model, original6s Anna reference, two streaming runs. Model/import start2.571s; reference encoding0.343s; exported voice reload0.000456s. Generate4.641/4.883s for10.24/10.56s audio (RTF0.453/0.462). First chunk 0.104/0.113s. Peak RSS996MiB. Strata PID1436023 unchanged, loaded512K; transient Anna test completed/inactive, no Hermes or endpoint/default change.

Private derived voice state retained as /opt/athena-small-tts-tests-20261017/Anna-pocket-german.safetensors mode0600. This experiment profile is not yet registered in Deck's encrypted voice backup: regenerate from the existing backed-up Anna WAV with anna.py, or explicitly include it when promoting Pocket into production. Neither embedding nor reference is in Git. Gated weights require the accepted HF account on a fresh rebuild; exact revision and SHA256 are in athena-anna-manifest.json.

Both generated MP3s fully decoded with FFmpeg. Local STT result recorded separately; no subjective voice similarity/listening score claimed. No native full restore tested.