Views
No views yet
The fastest Bilingual (Vietnamese & English) TTS engine with Instant Zero-Shot Voice Cloning.
vieneu SDK (Recommended)1# Minimal installation (Turbo/CPU Only)
2pip install vieneu
3
4# Optional: Pre-built llama-cpp-python for CPU (if building fails)
5pip install vieneu --extra-index-url https://pnnbao97.github.io/llama-cpp-python-v0.3.16/cpu/
6
7# Optional: macOS Metal acceleration
8pip install vieneu --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/metal/1from vieneu import Vieneu
2
3# Initialize in Turbo mode (Default - Minimal dependencies)
4tts = Vieneu()
5
6# 1. Simple synthesis (uses default Southern Male voice 'Xuân Vĩnh')
7text = "Hệ thống điện chủ yếu sử dụng alternating current because it is more efficient."
8audio = tts.infer(text=text)
9
10# Save to file
11tts.save(audio, "output_Xuân Vĩnh.wav")
12print("💾 Saved to output_Xuân Vĩnh.wav")
13
14# 2. Using a specific Preset Voice
15voices = tts.list_preset_voices()
16for desc, voice_id in voices:
17 print(f"Voice: {desc} (ID: {voice_id})")
18
19my_voice_id = voices[1][1] if len(voices) > 1 else voices[0][1] # Giọng Phạm Tuyên
20voice_data = tts.get_preset_voice(my_voice_id)
21
22audio_custom = tts.infer(text="Tôi đang nói bằng giọng của Bác sĩ Tuyên.", voice=voice_data)
23
24# 3. Save to file
25tts.save(audio_custom, "output_Phạm Tuyên.wav")
26print("💾 Saved to output_Phạm Tuyên.wav")1from vieneu import Vieneu
2
3tts = Vieneu() # Defaults to Turbo mode
4
5# 1. Encode the reference audio (extracts speaker embedding)
6# Supported formats: .wav, .mp3, .flac
7my_voice = tts.encode_reference("examples/audio_ref/example.wav")
8
9# 2. Synthesize with the cloned voice
10# No reference text required for Turbo v2!
11audio = tts.infer(
12 text="Đây là giọng nói được clone trực tiếp bằng SDK của VieNeu-TTS.",
13 voice=my_voice
14)
15
16tts.save(audio, "cloned_voice.wav")1git clone https://github.com/pnnbao97/VieNeu-TTS.git
2cd VieNeu-TTS
3uv sync # minimal install (Turbo/CPU)
4uv run vieneu-web
5# → Open http://127.0.0.1:7860| Dataset | Language | Description |
|---|---|---|
pnnbao-ump/VieNeu-TTS-1000h | Vietnamese | DeepMind/Vietnamese studio-quality corpus |
pnnbao-ump/vietnamese-audio-corpus | Vietnamese | Large-scale multi-accent Vietnamese data |
amphion/Emilia-Dataset | Multilingual | Large-scale multilingual diverse speech |
facebook/multilingual_librispeech | English | Extensive English read speech |
| Resource | Link |
|---|---|
| 🐙 GitHub | pnnbao97/VieNeu-TTS |
| 📖 Documentation | docs.vieneu.io |
| 📦 PyPI | pip install vieneu |
| 💬 Discord | Join here |