← Back to Leaderboard
Vpnnbao97

pnnbao97/VieNeu-TTS

Self-hosted Vietnamese text-to-speech with ONNX CPU and CUDA streaming

Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated yesterday
Latest Release
app-v0.19.3
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AIDockerGPUAPI
Total Stars
★ 3,715
24h Growth
+1
7d Growth
+76
Forks
1,120

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

pnnbao97/VieNeu-TTS Star History (2025-10-27 - 2026-12-04) ALL-TIME STAR HISTORY (2025-10 – 2026-12) +3.7k in 403d · avg +9/day 3.9k 2k 0 2025-10-27: ★ 12025-11-22: ★ 1002025-12-20: ★ 3382026-01-17: ★ 5512026-02-14: ★ 7352026-03-14: ★ 8722026-04-11: ★ 1,2132026-05-09: ★ 1,4452026-06-06: ★ 1,6232026-07-04: ★ 1,9972026-08-01: ★ 2,2442026-08-29: ★ 2,4172026-09-26: ★ 2,6632026-10-24: ★ 2,9222026-11-18: ★ 3,4892026-12-04: ★ 3,715 ★ 3.7k 2025-10 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

VieNeu-TTS is a Python inference engine with v3 Turbo as the default behind the Vieneu SDK. Its speech stack uses sea-g2p for phonemization and MOSS-Audio-Tokenizer-Nano as its audio codec. Presets and cloned voices condition synthesis through speaker embeddings and reference codes. The CPU path uses ONNX Runtime without importing PyTorch. With the CUDA stack available, the SDK selects PyTorch automatically; backend="onnx" explicitly opts back into CPU inference.

On CUDA, a single graph replay per audio frame combines acoustic decoding, sampling, repetition penalty, and the backbone step. The streaming scheduler continuously batches requests rather than running an independent GPU loop per listener. The SDK exposes frame-level audio through infer_stream, and apps/openai_speech.py provides the HTTP service boundary via POST /v1/audio/speech. The package uses setuptools, while uv leaves dependency groups off by default to keep the minimal installation torch-free.

Key Capabilities & Differentiators

v3 Turbo produces 48 kHz audio for Vietnamese and English, with 25 presets spanning northern, central, and southern Vietnamese voices, plus cloning from a reference clip. Conversation mode batches a multi-speaker script across speaker changes, with generation batches of up to 32. Inline non-verbal cues such as [cười] and [thở dài] are experimental. The SDK still accepts style for compatibility but ignores it: the reference voice determines the reading style.

On an RTX 3060, the measured offline batch RTF was about 0.02, while a separate live test reached about 115 ms to the first audio chunk with 16 concurrent streams. On a 12th-generation Core i5, Turbo fp32 measured about 0.5 RTF; CPU streaming put first audio at about 300 ms for fp32 and 140 ms for int8, with one or two streams respectively. For weaker CPUs, v3 Nano is a 24 kHz ONNX preview with 11 presets and desktop CPU RTF of 0.11–0.22, at a noticeable cost to English and mixed-language quality.

Trade-offs & Limitations

Compared with a hosted option such as ElevenLabs, self-hosted v3 Turbo gives teams control over where scripts and reference recordings are processed, but leaves capacity planning and service operations with them. The OpenAI-compatible speech endpoint can reduce client changes, though voice selection and streaming behavior still warrant integration tests. The repository code is Apache-2.0; verify the terms for the actual weights and voice assets before commercial distribution, and obtain authorization for cloned voices. Proprietary v4 is hosted-only, not a drop-in model for the local stack.

CPU fp32 is the safer starting point for a single listener. CPU int8 measured about 0.35 RTF and reduces backbone size, but requires VNNI; older CPUs can produce garbled audio. GPU batch throughput is useful for offline narration, but does not translate directly into interactive capacity. For a voice agent, test first playable audio and sustained concurrency with your own text lengths and client buffering. For bilingual publishing, listen to mixed-language material before trading Turbo quality for Nano speed.

Hardware & Deployment Guide

Use uv sync from the checkout for the minimal CPU setup, uv sync --extra cuda for the CUDA path, and uv run vieneu-web for the local Web UI. The Windows SDK setup lists PyTorch and torchaudio 2.8.0 from the CUDA 12.8 wheel index and Transformers 4.57.6. For a self-hosted endpoint, run uv run python -m apps.openai_speech or use docker/docker-compose.yml with api-cpu or api-gpu. The older pnnbao/vieneu-tts:serve LMDeploy image serves v1/v2 and cannot serve fine-tuned v3 Turbo models; load those through the SDK. With model assets present locally, on-device synthesis does not require the hosted v4 API.

The first CUDA call for each batch size pays about 0.5 s to capture the graph. Use warm_fused() at startup where cold latency matters, then measure first audio and peak VRAM at target concurrency. No exact VRAM minimum is established by the RTX 3060 test. Desktop releases 0.19.1 and 0.19.2 added non-verbal cue suggestions for dubbing and folder-based .txt chapter import for audiobooks, respectively. These are authoring workflow improvements, not inference benchmark updates.

Runtime: v3 Turbo uses ONNX Runtime without PyTorch on CPU and selects PyTorch on CUDA when available.
GPU execution: One CUDA graph replays the work for each audio frame; continuous batching serves concurrent streaming requests.
Voice conditioning: 25 presets span northern, central, and southern Vietnamese voices; reference clips can supply both speaker identity and reading style.
Script synthesis: Multi-speaker Conversation mode batches lines across speakers, with generation batches of up to 32.
Service integration: POST /v1/audio/speech streams PCM or WAV through chunked responses or SSE, with separate Docker Compose profiles for CPU and GPU.
Model boundary: v3 Turbo is the latest open-source version; v3 Nano is a 24 kHz edge preview, and proprietary v4 is hosted-only.
Best For

Teams building self-hosted Vietnamese voice agents, narration, or multi-speaker audio that want to keep scripts and reference recordings on their own infrastructure.

Skip If

You need v4-level cloning fidelity in a self-hosted deployment, require a released mobile SDK, or prefer a managed service to operating CPU or GPU inference.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release app-v0.19.3 (2026-12-02) shipped after this reviewMethodology

Quick Start & Installation

Self-HostedLocal AIDockerGPU
# Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
VieNeu-TTS ★3.7k+76PythonApache-2.0Self-hosted Vietnamese text-to-speech with ONNX CPU and CUDA streaming
fish-speech34k+84Python—Self-hosted PyTorch speech inference for directed, multi-speaker audio
mlx-audio8.4k+32PythonMITMLX inference SDK for local speech and audio pipelines on Apple Silicon
voice-pro13.5k+34PythonGPL-3.0Self-hosted Gradio studio for transcription, translation, and dubbing

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/pnnbao97/VieNeu-TTS.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

pnnbao97/VieNeu-TTS Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about VieNeu-TTS

How do I integrate VieNeu-TTS into an existing voice pipeline?

For a Python application, iterate over Vieneu().infer_stream(...) to consume audio frames directly. For a separate service, run apps/openai_speech.py and point your client at the local /v1 base URL. Verify that the client handles the selected PCM or WAV response and chunked or SSE transport. Compatibility here applies to the speech endpoint, not the entire OpenAI API.

Do I need a GPU, and how should I size VRAM and concurrency?

Start with ONNX Runtime on CPU for one listener. Turbo fp32 measured an RTF of about 0.5 on a 12th-generation Core i5. The RTX 3060 result is a reference for GPU concurrency, not a minimum VRAM requirement. For a 16 GB GPU stack, measure peak VRAM with the intended stream limit and any co-resident models after CUDA graph warm-up. Offline batch RTF does not predict live stream capacity.

Can I use VieNeu-TTS in a commercial self-hosted product?

The repository code is Apache-2.0. Before shipping a commercial self-hosted service, confirm the terms for the exact model weights and voice assets you plan to use, and obtain authorization for reference recordings used in cloning. Proprietary v4 is available only through the hosted API or website, not as a self-hosted upgrade under the repository license.

When should I choose VieNeu-TTS over ElevenLabs?

Choose v3 Turbo when keeping Vietnamese inputs and reference audio on infrastructure you control matters more than outsourcing operations. Evaluate ElevenLabs when a managed service is the priority. Compare both on your own Vietnamese and mixed Vietnamese–English scripts, and test speaker similarity and end-to-end playback latency rather than relying on batch throughput figures.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining pnnbao97/VieNeu-TTS? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature pnnbao97/VieNeu-TTS on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare