Skip to main content

Advanced on-device Vietnamese TTS with instant voice cloning

Project description

🦜 VieNeu-TTS

VieNeu-TTS is an advanced on-device Vietnamese Text-to-Speech (TTS) model with instant voice cloning and English-Vietnamese bilingual support.

Hugging Face v2 Turbo License

✨ Key Features

  • Bilingual (English-Vietnamese): Seamless transitions between languages (Code-switching) in version 2.0+.
  • Instant Voice Cloning: Clone any voice with just 3-5s of reference audio (Turbo v2 & GPU modes).
  • Ultra-Fast Turbo Mode: Optimized for CPU (GGUF) and GPU (LMDeploy). Extremely fast inference!
  • Production Ready: High-fidelity 24 kHz audio generation, fully offline.
  • AI Identification: Built-in audio watermarking for responsible AI use.

📦 Quick Install

# Minimal installation (Turbo/CPU Only)
pip install vieneu

# Optional: Pre-built llama-cpp-python for CPU (if building fails)
pip install vieneu --extra-index-url https://pnnbao97.github.io/llama-cpp-python-v0.3.16/cpu/

🚀 Quick Start (Python SDK)

The SDK now defaults to Turbo mode for maximum out-of-the-box compatibility.

from vieneu import Vieneu

# Initialize - Minimal dependencies required!
tts = Vieneu()

# 1. Simple synthesis (uses default 'Xuân Vĩnh')
text = "Hệ thống điện chủ sử dụng alternating current because it is more efficient."
audio = tts.infer(text=text)
tts.save(audio, "output.wav")

# 2. Using a specific Preset Voice
voices = tts.list_preset_voices()
# Select 'Bắc (Nam miền Bắc)' ID
my_voice_id = voices[1][1] if len(voices) > 1 else voices[0][1]
voice_data = tts.get_preset_voice(my_voice_id)

audio_custom = tts.infer(text="Tôi đang nói bằng giọng của anh Bình.", voice=voice_data)
tts.save(audio_custom, "output_custom.wav")

🦜 Zero-shot Voice Cloning (SDK)

from vieneu import Vieneu
tts = Vieneu()

# 1. Encode reference audio (3-5s wav/mp3)
my_voice = tts.encode_reference("path/to/voice.wav")

# 2. Synthesize with cloned voice (No ref text needed for v2!)
audio = tts.infer(text="Chào bạn, đây là giọng của tôi.", voice=my_voice)
tts.save(audio, "cloned.wav")

🔬 Model Overview

Model Format Device Bilingual Cloning Speed
VieNeu-v2-Turbo GGUF/ONNX CPU/GPU ✅ Yes Extreme
VieNeu-TTS-v2 PyTorch GPU ✅ Yes Standard
VieNeu-TTS 0.3B PyTorch GPU/CPU ✅ Yes Very Fast
VieNeu-TTS PyTorch GPU/CPU ✅ Yes Standard

🤝 Support & Links

Made with ❤️ for the Vietnamese TTS community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vieneu-2.6.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vieneu-2.6.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file vieneu-2.6.0.tar.gz.

File metadata

  • Download URL: vieneu-2.6.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vieneu-2.6.0.tar.gz
Algorithm Hash digest
SHA256 e3a6613b20de932a6cae3ccd225f5b83564cd3d1c620486447737e9ab6bc29ab
MD5 86b1f56b6d6b48cb2985f015d30eb517
BLAKE2b-256 e3fe8100df4b1cc0932546cf72ff73a907c9140b3af23a36c1fcfa00b5a547f0

See more details on using hashes here.

File details

Details for the file vieneu-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: vieneu-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vieneu-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b6fd996058bdd6c6f51c46e065814b2cfe8528595be690012d29e32955bb51c
MD5 6b104f00f23c66382409b2cecd0387d4
BLAKE2b-256 294d5c63b4b1c9456da82f955cfc4966eb42a57ceda7f92b0c9823a9144d7921

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page