Vietnamese Kokoro TTS inference model. Vietnamese G2P is handled by
vig2p
.
Install
git clone https://github.com/iamdinhthuan/Kokoro-Vietnamese.git
cd Kokoro-Vietnamese
pip install -e .
Install the PyTorch build that matches your machine first if you need CUDA.
Voices
Use these names with
voice=...
in Python or
--voice ...
in the CLI.
Voice
Name
diem_trinh
Diễm Trinh
hung_thinh
Hưng Thịnh
mai_linh
Mai Linh
mai_loan
Mai Loan
manh_dung
Mạnh Dũng
my_yen
Mỹ Yến
ngoc_huyen
Ngọc Huyền
phat_tai
Phát Tài
thanh_dat
Thành Đạt
thuc_trinh
Thục Trinh
tuan_ngoc
Tuấn Ngọc
storyvert
storyvert
duc_an
Đức An
duc_duy
đức duy
Python API
import soundfile as sf
from kokoro_vietnamese import KokoroVietnamese
tts = KokoroVietnamese(device="cuda", voice="diem_trinh")
audio, phonemes = tts.synthesize(
"Giữa một buổi chiều yên tĩnh, cô ấy kể lại câu chuyện bằng một giọng nói ấm áp và chậm rãi."
)
sf.write("sample.wav", audio, 24000)
print(phonemes)
Use another voice:
tts = KokoroVietnamese(device="cuda", voice="mai_linh")
audio, phonemes = tts.synthesize("Hôm nay trời trong xanh, gió thổi nhẹ qua hiên nhà.")
CLI
kokoro-vietnamese \
--text "Giữa một buổi chiều yên tĩnh, cô ấy kể lại câu chuyện bằng một giọng nói ấm áp và chậm rãi." \
--voice diem_trinh \
--output sample.wav \
--device cuda
List voices:
kokoro-vietnamese --list-voices
Notes
Text is split by sentence punctuation and merged with a short crossfade.
The model expects Vietnamese text normalized enough for
vig2p
.
The voicepacks are derived from the LarVoice multi-speaker training set and are distributed as inference artifacts.
Runs of contextboxai Kokoro-Vietnamese on huggingface.co
47.0K
Total runs
1.1K
24-hour runs
530
3-day runs
3.0K
7-day runs
6.7K
30-day runs
More Information About Kokoro-Vietnamese huggingface.co Model
Kokoro-Vietnamese huggingface.co is an AI model on huggingface.co that provides Kokoro-Vietnamese's model effect (), which can be used instantly with this contextboxai Kokoro-Vietnamese model. huggingface.co supports a free trial of the Kokoro-Vietnamese model, and also provides paid use of the Kokoro-Vietnamese. Support call Kokoro-Vietnamese model through api, including Node.js, Python, http.
Kokoro-Vietnamese huggingface.co is an online trial and call api platform, which integrates Kokoro-Vietnamese's modeling effects, including api services, and provides a free online trial of Kokoro-Vietnamese, you can try Kokoro-Vietnamese online for free by clicking the link below.
contextboxai Kokoro-Vietnamese online free url in huggingface.co:
Kokoro-Vietnamese is an open source model from GitHub that offers a free installation service, and any user can find Kokoro-Vietnamese on GitHub to install. At the same time, huggingface.co provides the effect of Kokoro-Vietnamese install, users can directly use Kokoro-Vietnamese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.