CPU build of itzune/antzoki-mini-tts, a Basque (euskara) fine-tune of Edge0/Audio8-TTS-Realistic-Air (0.6B, DualAR, 44.1 kHz codec, zero-shot voice cloning), as a bundle for the Audio8 llama.cpp runtime. It runs with no Python and no GPU.
The bundle needs the Audio8-patched llama.cpp, not stock llama.cpp, Ollama or LM Studio. The runtime does the text processing, DualAR generation, voice cloning and codec decoding.
| File | Type | Size |
|---|---|---|
models/slow-q4_k_m.gguf |
slow AR (24 layers), Q4_K_M | 387 MiB |
models/fast-q4_k_m.gguf |
fast AR (4 layers, 10 codebooks), Q4_K_M | 46 MiB |
models/codebook_embeddings.f32 |
codebook embeddings, F32 | 140 MiB |
models/audio8-realistic-codec-f32.gguf |
audio codec, F32 | 1.26 GiB |
audio8-runtime.json |
bundle manifest read by the runtime |
Only the two AR models are quantized. The RoPE tables and the codec stay F32 because the runtime requires it, so the codec is most of the download. The model width (896) is not a multiple of 256, so Q4_K_M uses Q5_0/Q8_0 for about half of its tensors.
# 1. Build the runtime (once). CPU build with this machine's SIMD + OpenMP.
git clone https://github.com/Edge0-AI/Audio8_TTS
git clone https://github.com/ggml-org/llama.cpp.git
git -C llama.cpp checkout d854d98bae598388ecea1ed84396587e5edc326d
python3 Audio8_TTS/llama_cpp/prepare.py --source llama.cpp
cmake -S llama.cpp -B build-cpu -G "Unix Makefiles" -C Audio8_TTS/llama_cpp/cmake/common.cmake \
-DGGML_NATIVE=ON -DGGML_OPENMP=ON -DAUDIO8_CODEC_OPENMP=ON '-DCMAKE_INSTALL_RPATH=$ORIGIN/../lib'
cmake --build build-cpu --parallel --target llama-tts
# 2. Download the bundle and the Basque text normalizer
hf download itzune/antzoki-mini-tts-GGUF --local-dir antzoki-gguf
hf download itzune/antzoki-mini-tts eu_normalize.py --local-dir .
# 3. Synthesize. Normalize the text first: numbers, dates and abbreviations become words.
TEXT=$(python3 -c 'from eu_normalize import normalize; print(normalize("Bihar goizean, zortzietan, Bilboko geltokian elkartuko gara."))')
build-cpu/bin/llama-tts --audio8-model-dir antzoki-gguf --text "$TEXT" --output out.wav \
--gpu-layers 0 --threads 16 --max-frames 512
# Voice cloning: 10–15 s of clean speech plus its exact transcript
build-cpu/bin/llama-tts --audio8-model-dir antzoki-gguf --text "$TEXT" --output clone.wav \
--gpu-layers 0 --threads 16 --max-frames 512 \
--reference-audio ref.wav --reference-text "Erreferentzian esaten den testu zehatza."
llama-tts does not overwrite an existing --output file. When generation reaches
--max-frames without an end of speech (a runaway), it exits with an error. Run it again with
another --seed.
Measured on CPU with 8 sentences that are not in the training data, with a held-out reference voice and without a reference, and 3 seeds each.
| Bundle | Size | Speaker SIM ↑ | Runaways, with ref | Runaways, no ref | RTF (with ref / no ref) |
|---|---|---|---|---|---|
| F32 | 3.6 GB | 0.932 | 1/24 | 3/24 | 7.9 / 7.1 |
| Q4_K_M (this repo) | 1.9 GB | 0.940 | 0/24 | 4/24 | 3.7 / 2.7 |
| Q4_0 | 1.8 GB | 0.923 | 3/24 | 7/24 | 3.4 / 2.4 |
The Q4_K_M and F32 results are within noise of each other, and Q4_K_M is 2–2.6× faster. RTF is seconds of compute per second of audio, measured with 4 jobs sharing the CPU. One job with 16 threads runs at about 2 RTF: a 5 s sentence with a reference takes 2.8 s of AR, 4.7 s of codec and 3.3 s of reference encoding. CPU synthesis is therefore slower than real time, and the F32 codec is the bottleneck.
The limitations of the original model apply. It was trained on about 9 hours of read speech, and it mispronounces some rare words and names (for example Antton). There is no speed parameter: the pace follows the reference. Without a reference, the voice and the pace change with every seed.
The conversion and quantization scripts are in
github.com/itzune/antzoki-mini-tts (scripts/gguf/):
convert_eu.py (F32 bundle), quantize_eu.sh (Q4_K_M) and eval_gguf.py (the table above).
Apache-2.0, like the base model. See LICENSE and NOTICE.
itzune/antzoki-mini-tts