M5-TTS-Lite.AXERA
streaming voice cloning on NPU
2 min readupdated
A compact text-to-speech (TTS) model featuring zero-shot voice cloning that copies any voice from a short sample without fine-tuning and delivers real-time audio output. Developer HY-2012 built this upon ASLP-lab/M5-TTS-50M-VoiceClone (totaling 137.5M parameters) using distillation to transfer knowledge from a larger model to a smaller one while shrinking the Depth Decoder from 5 layers down to 3. Compiled specifically for the neural processing units (NPU) of AX650 and AX650N chips, this release targets embedded systems and voice assistant developers who need fast, local speech synthesis in English and Chinese.
Key features
- Compressed decoder: The Depth block parameter count was cut by 64.8% (from 19.01M down to 6.69M), dropping model file weight from 21 MB to 7 MB.
- Real-time performance: Running in a C++ runtime, the model achieves a real-time factor (RTF) of 0.52 and produces its first audio chunk (time-to-first-audio or TTFA) in 0.63 seconds.
- Dual language and mixed support: Trained on 1,273 hours of speech across WenetSpeech, LibriTTS, and AISHELL, it handles English, Chinese, and mixed text fluently.
- Two execution modes: Supports streaming generation in 0.64-second batches alongside a standard mode using provided C++ code or a Python SDK.
What you can do
- Deploy offline voice synthesis with voice cloning on single-board computers and edge devices powered by AX650N chips.
- Integrate it into a local voice assistant with minimal response latency thanks to C++ streaming output.
- Use the published PyTorch bundle and Pulsar2 conversion scripts as a template for porting other audio models to NPUs.
Example
import sys; sys.path.insert(0, "python")
from m5_ax import M5AX, write_wav
tts = M5AX("models", "models/assets")
wav = tts.synthesize("The meeting starts at nine.", "samples/aslp_default_voice.wav", "参考文本")
write_wav("out.wav", wav, tts.sr)Read more
DetailsHardware: AX650 / AX650N chips (6 axmodel files: 32 MB + 32 MB + 7 MB + 7 MB + 42 MB + 111 MB).
Speed on AX650N: C++ RTF 0.52 (1.41x autoregression speedup from 38.0 to 26.9 ms/frame), Python RTF 1.06.
Limitations: Reference audio must be under 4.8 seconds (exact transcript required), single-pass generation up to 20 seconds.
Evaluation status: Accuracy metrics measured on validation data, but subjective naturalness testing has not yet been conducted.










Comments