Use AIUnderstand AIBuild with AI
Build with AI·Model deep dive·· 4 min read

Run Audio8-TTS-Realistic-Air: 0.6B Voice Cloning in 23 Languages

Edge0's Apache-2.0, 0.6B text-to-speech model clones a voice from a short reference clip. Install, run it in Transformers, and know its limits.

The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.

Audio8-TTS-Realistic-Air is a text-to-speech model from Edge0 that builds on Audio8-TTS-Preview-0.6b. It keeps the 0.6B size and zero-shot voice cloning, and the card says it improves speech realism and grows language support from 11 to 23 languages. Code and weights are Apache-2.0.

Key specs

Item Value (from the card)
Main model 601,159,424 parameters, excluding the codec
Architecture DualAR: a slow AR transformer predicts one semantic token per audio frame; a fast AR transformer predicts the frame’s codec codebooks
Slow AR / Fast AR 24 layers / 4 layers, width 896
Codec 44.1 kHz, bundled in the repo, 10 codebooks of 4,096 entries
Context Up to 2,048 packed text/audio positions
Languages 23 (see below)
License Apache-2.0

The 12 languages added over Preview are Arabic, Finnish, Hindi, Indonesian, Malay, Norwegian, Portuguese, Russian, Swedish, Thai, Turkish and Vietnamese. The 11 from Preview are Cantonese, Chinese, Dutch, English, French, German, Italian, Japanese, Korean, Polish and Spanish.

Install

The card recommends Python 3.10 or newer and a CUDA-capable GPU.

Terminal window
pip install "torch>=2.5.0" "torchaudio>=2.5.0" \
"transformers>=4.57.0,<5" "soundfile>=0.12" "safetensors>=0.4"

The card says it was smoke-tested with PyTorch 2.8.0 and Transformers 4.57.3 on an NVIDIA H20 in BF16, covering English and Chinese with and without reference audio, plus Arabic, Cantonese, Portuguese and Russian.

Run it: voice cloning

The model uses custom Transformers code, so loading needs trust_remote_code=True. The card tells you to review the repository’s files first. The reference transcript must match the reference recording exactly, and the recording should be clean.

clone.py
import soundfile as sf
import torch
from transformers import AutoModel, AutoProcessor
model_id = "Edge0/Audio8-TTS-Realistic-Air"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModel.from_pretrained(
model_id,
trust_remote_code=True,
dtype=dtype,
).eval().to(device)
inputs = processor(
text=["Welcome to Audio8 TTS. It is wonderful to hear from you."],
reference_audio=["reference.wav"],
reference_text=["The exact transcript of the reference recording."],
return_tensors="pt",
)
inputs = {name: value.to(device) for name, value in inputs.items()}
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=1024,
temperature=0.8,
top_p=0.95,
top_k=50,
do_sample=True,
return_dict_in_generate=True,
)
waveforms, waveform_lengths = model.decode_audio(output.codes)
audio = waveforms[0, : int(waveform_lengths[0])].float().cpu().numpy()
sf.write("output.wav", audio, model.config.codec_sample_rate)

Run it: no reference voice

To generate speech without cloning, replace the processor call with a text-only one:

no_reference.py
inputs = processor(
text=["This utterance does not use a reference voice."],
return_tensors="pt",
)

Then move the inputs to the device and run the same generate and decode_audio steps as above.

Serving

For GPU serving, the card points to an SGLang Omni adapter with paged attention, dynamic batching and an OpenAI-compatible /v1/audio/speech endpoint. It uses the config sglang_omni/configs/audio8_tts_0_6b.yaml from the Audio8 TTS repository, which also has the deployment guide for dependency versions and API examples. The card says this path was validated on an H20 in BF16 for non-streaming requests with and without a reference, and that throughput and streaming were not benchmarked.

What the benchmarks say

The card reports error rates (lower is better) and speaker similarity (SIM, 0 to 1, higher is better). It notes these measure intelligibility and speaker similarity, not perceived realism.

Benchmark Preview error % Realistic Air error % Realistic Air SIM
Seed-TTS (English / Chinese) 1.23 1.25 0.704
CV3, 8 shared languages 4.80 4.56 0.663
MiniMax, 24 evaluated languages not reported 5.89 0.754

Quality is uneven by language. On CV3, for example, the card lists error rates of 2.907 for English and 1.814 for Chinese, but 21.098 for Arabic, 32.279 for Finnish and 48.574 for Thai. The card says explicitly that the support list is not a claim of equal quality across languages. Its comparison table against other TTS models mixes evaluation pipelines, and the card calls it a reference comparison, not a strictly matched ranking.

Gotchas

  • Reference quality matters. Noisy audio or a transcript that does not match can reduce stability and speaker similarity.
  • Finite context. Reference audio, reference transcript and target text share one budget, so split long passages into shorter utterances.
  • Output errors. The card warns of pronunciation errors, repetitions, omissions and early stopping. Listen before shipping.
  • Remote code. Loading runs custom code from the repo; read it first.
  • Consent. The card asks you to get permission to clone a voice and to disclose synthetic audio where appropriate.
  • Dependency pin. The card pins Transformers to >=4.57.0,<5.

When to pick it

Pick it if you want a small, Apache-licensed TTS model with zero-shot cloning, and you want coverage of more than English and Chinese. English and Chinese have the lowest error rates in the card’s CV3 table. Be careful with Arabic, Finnish, Thai and other languages where that table shows much higher error rates, and test with your own text. It is not the choice if you need streaming, which the card does not benchmark, or a guarantee of consistent quality across all 23 languages.

Related