Files

Existing Qwen TTS on CPU — 2026-10-13

Requested short German speech test without modifying or unloading Strata. Existing Qwen/Qwen3-TTS-12Hz-1.7B-Base weights, pinned revision from tts_runtime.py, and built-in Ryan preset embedding. Synthetic text: "Hallo Michael, die Sprachausgabe läuft jetzt auf der CPU."

The production faster-qwen3-tts Deck worker currently hardcodes CUDA, including preset tensors and warmup. This isolated test uses the already installed official Qwen3TTSModel API with the same model/preset on CPU, float32 and SDPA; it is not a new production CPU integration. No installation/download needed.

Measurement 2 threads 6 threads
Imports 4.37 s 3.82 s
Model load 2.35 s 1.56 s
Total ready time 6.73 s 5.38 s
First generation 28.79 s 26.94 s
Audio duration 5.28 s 5.28 s
Real-time factor (generation / audio) 5.45 5.10

With 2 threads, a second generation from the already loaded model takes 28.23 seconds (RTF 5.35). With 6 threads, first complete audio arrives about 32.32 seconds after process start. Model-file page caches may be warm; these are process/model startup timings, not guaranteed cold-host timings. This non-streaming test does not measure streaming time to first audio chunk.

Conclusion: CPU execution works, but the existing 1.7B model is about five times slower than real-time here. Increasing CPU threads from two to six did not overcome the deficit. No new TTS policy or GPU allocation adopted.

Isolation and verification

Temporary containers: no GPU devices, CUDA_VISIBLE_DEVICES=-1, no network, read-only existing state mount, 12-GiB memory limit with no swap, explicit 2/6 CPU quota and torch threads. Weights and presets unchanged; only public bundled Ryan voice used. The offline model generated valid nonzero mono 24000-Hz PCM WAV files. No subjective pronunciation/voice-quality assessment was performed.

Strata's GPU process PID and allocations (11184 / 15274 MiB) remained exactly unchanged through both tests. Test containers exited and were removed. CPU tests share host CPU/memory resources, so this does not guarantee unaffected concurrent LLM latency. No production logs, private voices or user speech read. Own synthetic audio/results remain under /opt/athena-deck-dev/tts-cpu-test-20261013; only synthetic text/metrics are committed. No production code/config or restore recipe changed.