Downloads · 30 days
23
5% of all-time downloads
dolly-vn/Vira-TTS
Vira-TTS is a text-to-speech model from dolly-vn. Use it when you need text read aloud. It is set up for transformers. The card lists the license as apache-2.0.
Vietnamese Text-to-Speech model with Voice Cloning capability, finetuned from MiraTTS for Vietnamese language.
Downloads · 30 days
23
5% of all-time downloads
All-time downloads
460
Public
Parameters
507M
1.3 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors1.3 GB · 98%
How the weights are stored.
BF16358M · 71%
From the Hugging Face model README
Vietnamese Text-to-Speech model with Voice Cloning capability, finetuned from MiraTTS for Vietnamese language.
Vira-TTS is a neural TTS model that can synthesize natural Vietnamese speech from text while cloning the voice characteristics from a reference audio sample.
| Property | Value |
|---|---|
| Base Architecture | Qwen2-0.5B |
| Audio Codec | Fash-BiCodec |
| Sample Rate | 16kHz (native), 48kHz (with FlashSR) |
| Language | Vietnamese |
pip install git+https://github.com/iamdinhthuan/Vira-tts.git
from mira.model import MiraTTS
# Model will be downloaded automatically
mira_tts = MiraTTS('model_pretrained')
# Provide reference audio for voice cloning
reference_audio = "speaker.wav"
text = "Xin chào, đây là giọng nói tiếng Việt."
context_tokens = mira_tts.encode_audio(reference_audio)
audio = mira_tts.generate(text, context_tokens)
# Save output
import soundfile as sf
sf.write("output.wav", audio.float().cpu().numpy(), 48000)
python app.py
python infer.py --text "Xin chào" --reference speaker.wav --output output.wav
The model includes automatic Vietnamese text normalization:
| Input | Output |
|---|---|
Năm 2024 | Năm hai nghìn không trăm hai mươi tư |
100.000 VNĐ | một trăm nghìn đồng |
TP.HCM | thành phố Hồ Chí Minh |
@misc{vira-tts,
author = {Dinh Thuan},
title = {Vira-TTS: Vietnamese Text-to-Speech with Voice Cloning},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/dolly-vn/Vira-TTS}
}
MIT