What is VieNeu-TTS?
VieNeu-TTS is an open-source text-to-speech toolkit built for Vietnamese, with English code-switching. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Python and licensed Apache-2.0. To get started: install the SDK.
Overview
VieNeu-TTS is an open-source text-to-speech toolkit built for Vietnamese, with English code-switching. It ships as a Python SDK (`pip install vieneu`), a Gradio web UI, and an OpenAI-compatible streaming server, so you can turn Vietnamese text into speech on your own machine instead of calling a cloud service. The default v3 Turbo engine outputs 48 kHz audio and includes 25 preset voices spanning Northern, Central and Southern accents.
The minimal install is torch-free: on a CPU the whole pipeline runs on ONNX Runtime, and on a CUDA machine the same API switches to a PyTorch engine that batches requests automatically. Beyond plain synthesis it clones a voice from a 3–8 second reference clip (with automatic denoising), accepts inline emotion cues such as `[cười]` (chuckle) and `[thở dài]` (sigh), streams audio frame by frame, and supports LoRA fine-tuning of a single voice on one consumer GPU. A smaller v3 Nano model trades quality for speed on weak CPUs and edge boards.
The repository holds the open-source engine and a simplified demo; the maintainer notes that the separate VieNeu-TTS v4 model and app features such as dubbing and audiobooks are proprietary and offered through vieneu.io rather than this repo.
What it does
- Python SDK with `infer`, `infer_batch` and `infer_stream`, running torch-free on CPU via ONNX Runtime or batched on a CUDA GPU with the same API
- Instant voice cloning from a 3–8 second clip, with automatic denoising and `add_voice` to save a cloned voice for reuse by name
- 25 built-in preset voices across Northern, Central and Southern Vietnamese accents, plus experimental inline emotion cues
- OpenAI-compatible `POST /v1/audio/speech` streaming server, runnable from the repo or via Docker CPU/GPU profiles, usable from the OpenAI SDK, Pipecat or LiveKit
- Gradio web UI (`vieneu-web`) for trying voices and cloning without writing code
- LoRA fine-tuning scripts to train one custom voice or reading style from about 10–30 minutes of clean audio
Getting started
Install the SDK from PyPI for scripting, or clone the repo with uv to get the web UI and the streaming API server. The commands below are taken from the project README.
Install the SDK
The default install is torch-free and runs on CPU through ONNX Runtime. On Linux with an NVIDIA GPU, `pip install "vieneu[cuda]"` adds the PyTorch engine.
pip install vieneuGenerate speech with a preset voice
Create a `Vieneu` instance (v3 Turbo by default), synthesize text with a built-in voice and save a WAV file.
from vieneu import Vieneu
vieneu = Vieneu()
audio = vieneu.infer("Xin chào các bạn!", voice="Mai Anh")
vieneu.save(audio, "output.wav")Clone a voice from a short clip
Pass a 3–8 second reference recording; it is cleaned up automatically before cloning.
audio = vieneu.infer(
"Đây là giọng được nhân bản tức thì.",
ref_audio="my_voice.wav", # a 3–8s reference clip
denoise=True,
)
vieneu.save(audio, "cloned.wav")Run the web UI
Clone the repository, install dependencies with uv (add `--extra cuda` for GPU), then open http://127.0.0.1:7860.
git clone https://github.com/pnnbao97/VieNeu-TTS.git
cd VieNeu-TTS
uv sync
uv run vieneu-webServe an OpenAI-compatible speech API
Start the streaming server from the repo or with Docker; it listens on http://localhost:8000/v1/audio/speech and works with the OpenAI SDK by changing `base_url`.
uv run python -m apps.openai_speech
# or, with Docker:
docker compose -f docker/docker-compose.yml --profile api-cpu upCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Add Vietnamese speech to an app or product that must run offline or on a CPU-only machine
- Power a Vietnamese voice agent through an OpenAI-compatible streaming endpoint with Pipecat or LiveKit
- Narrate articles, lessons or audiobooks in a cloned or preset Vietnamese voice
- Fine-tune a dedicated voice with LoRA when cloning alone does not match a speaker closely enough
How VieNeu-TTS compares
VieNeu-TTS alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| VoiceStudio | ★ 121k | A local-first desktop voice studio that clones and designs voices, dubs video, and handles dictation, running 16 text-to-speech and 11 speech-recognition engines on your own hardware. |
| Whisper | ★ 114k | OpenAI's speech recognition model that transcribes and translates audio across many languages. |
| GPT-SoVITS | ★ 64.3k | An open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning. |
| Voicebox | ★ 61.6k | Local-first voice studio that clones a voice from a short sample, generates speech across seven TTS engines and 23 languages, handles system-wide dictation, and speaks for agents over MCP. |
| VibeVoice | ★ 57.6k | Microsoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts. |
| whisper.cpp | ★ 55.7k | A dependency-free C/C++ port of Whisper built on ggml, running speech recognition on CPU, Metal, CUDA, Vulkan and NPUs from phones to servers. |
| Coqui TTS | ★ 46.3k | A library of text-to-speech models including the multilingual XTTS voice-cloning model. |
| VieNeu-TTS | ★ 3.7k | On-device Vietnamese text-to-speech with instant voice cloning, 48 kHz audio and real-time CPU inference |
