Files

4.4 KiB
Raw Permalink Blame History

AT-Helper TTS — 2026-10-13

Separate native speech service on at-helper.scc.kit.edu (172.21.117.203). Athena Deck/Strata, their profiles and audio policies were not modified.

Tested hardware and decision

Debian 13.7, Xeon X3450 (4C/8T, no AVX), 8 GiB RAM, RX470 8 GiB, RADV Polaris10 Mesa25.0.7. Vulkan device0 is the GPU; software device1 is not used.

The pinned KoboldCpp oldpc binary starts with --failsafe --usevulkan 0. --noavx2 alone crashed with SIGILL, so it must not replace --failsafe here. Transformer and vocoder both confirmed Vulkan0. About2.65 GiB GPU memory was used during the synthetic request. RX470 has no native fp16 shader support.

Same German text, two runs:

Engine Model load Generate Audio RTF
Qwen3-TTS0.6B F16 Vulkan 2.42s* 30.69s 6.62s 4.64
Qwen3-TTS0.6B F16 Vulkan warm — 24.44s 6.94s 3.52
Piper Thorsten-medium CPU 2.86s 0.76s 5.96s 0.128
Piper Thorsten-medium CPU warm — 0.72s 5.67s 0.126

*Qwen model-load timing excludes ~8seconds self-extraction and initial runtime startup. RTF <1 is faster than realtime. These are two synthetic samples, not a voice-quality benchmark. Qwen WAVs had nonzero waveform peaks; no subjective listening score claimed.

Default: Piper CPU, German Thorsten voice, persistent model. Qwen: installed, optional service present, disabled/not running because too slow. No voice cloning or custom private voice files used. Piper does not offer Qwen's cloning/style features. GPU is freed after the completed Qwen test.

API

http://172.21.117.203:8099/v1/audio/speech Bearer key stored only on Helper at /etc/athena-helper-tts/api-key (root:athena-tts640). Do not print it, put it in Git, CLI arguments, screenshots or application logs. Transfer internally to the eventual consuming application or enter through its secret field. Traffic is HTTP on the KIT interface; use a TLS reverse proxy or encrypted tunnel before using this endpoint through an untrusted network. No all-interface bind, no public TTS UI.

  • model: tts-1, tts-1-hd, piper, de_DE-thorsten-medium all select the same model.
  • voice: thorsten, alloy alias.
  • language: default German; other languages rejected.
  • input: nonempty text; maxJSON32MiB.
  • response_format: mp3(default), wav, pcm, flac, opus, aac.
  • speed:0.25–4.0 (default1).
  • Authenticated GET /health, /v1/audio/voices.
  • Requests serialized for one loaded model; request content/authentication never logged.

This is not yet wired into Deck/LibreChat/OpenWebUI. Final API check: authenticated health/voices200, unauthenticated401; Athena-to-Helper connectivity confirmed via401. WAV0.800s for6.026s, MP31.468s for6.061s audio. API service memory221773824bytes (~212MiB); GPU residual5.2MiB after stopping Qwen.

Client credentials/settings and a real frontend playback check remain separate integration work.

Install / restore

Official sources:

Run sudo ./install.sh from this directory on a matching Debian13 host. manifest.json, piper-manifest.json pin revisions and SHA256; restore_models.py downloads/verifies public binaries/models. requirements.txt freezes tested Python packages. Debian dependencies: python3-venv, ffmpeg, libvulkan1, mesa-vulkan-drivers; existing video/render groups are required for optional Vulkan. Python3.13 tested.

  • /opt/athena-helper-tts: public models, binaries, venv, gateway.
  • /var/lib/athena-helper-tts: runtime user's home/cache.
  • /etc/athena-helper-tts/api-key: secret, preserve in encrypted backup to retain client access.
  • athena-helper-tts-api.service: Piper API, enabled onboot.
  • athena-helper-tts.service: optional Qwen localhost18099; NOT enabled onboot.

Adjust API unit's LISTEN_HOST for another host. The installer must only run on Helper; it starts this service but never restarts Deck or other applications. For updates, schedule an idle window before restarting the TTS service. Fresh-host full restore and post-reboot startup were not tested; enabled state and actual dedicated-user service startup were tested on this host.

Own measurement scripts and JSON outputs contain only synthetic test information. No model weights, private audio or credentials are committed.