Skip to content
ModelListedExternal
Download

Kokoro Vietnamese

Fine-tuned Vietnamese Kokoro TTS artifacts.

KindOtherVersionRevision 9f210d6Bgrade

Model source

Kind
Other
File size
511 KB–312 MB
Version
vRevision 9f210d6
Updated
Oct 20, 2026
Downloads
41.9K
Source
Hugging Face

Source description

Kokoro Vietnamese

Fine-tuned Vietnamese Kokoro TTS artifacts.

Files

  • kokoro_vi.pth: PyTorch Kokoro KModel checkpoint for inference.
  • kokoro_vi.onnx: ONNX Runtime export of the acoustic model.
  • kokoro_vi_voicepack.pt: default Vietnamese voicepack.
  • config.json: Kokoro config/vocab used by both PyTorch and ONNX inference.
  • voicepacks/*.pt: additional Vietnamese voicepacks.

Install

git clone https://github.com/iamdinhthuan/Kokoro-Vietnamese.git
cd Kokoro-Vietnamese
pip install -e .

For ONNX Runtime:

pip install -e ".[onnx]"

PyTorch Inference

kokoro-vietnamese \
  --text "Xin chào, hôm nay tôi đang kiểm tra giọng đọc tiếng Việt." \
  --output outputs/sample.wav \
  --voice diem_trinh \
  --device cuda

ONNX Runtime Inference

kokoro-vietnamese-onnx \
  --text "Tường nhà khách đã được sơn lại." \
  --output outputs/onnx.wav \
  --device cpu \
  --print-phonemes

The ONNX CLI downloads kokoro_vi.onnx, kokoro_vi_voicepack.pt, and config.json from this repository when local paths are not provided. Install onnxruntime-gpu and pass --device cuda to use CUDAExecutionProvider when available.

Export ONNX Yourself

kokoro-vietnamese-export-onnx \
  --output outputs/kokoro_vi.onnx

Vietnamese G2P is handled by vig2p, matching the GitHub inference and training code.

Sources

1 source
Hugging FacePrimaryVersion 9f210d622209fcc216fe2ac6159fed2ff381cb8a
huggingface.co/contextboxai/Kokoro-Vietnamese/tree/9f210d622209fcc216fe2ac6159fed2ff381cb8a

Verified Aug 30

Model artifacts

17 artifacts

kokoro_vi_voicepack.pt

pt · 512 KB · SHA-256 19ac1ed49f46…1fa3 · Hugging Face

Download

kokoro_vi.onnx

onnx · 311 MB · SHA-256 da191277f586…9087 · Hugging Face

Download

kokoro_vi.pth

pth · 312 MB · SHA-256 22976e6ac41d…1fb7 · Hugging Face

Download

voicepacks/diem_trinh.pt

pt · 512 KB · SHA-256 19ac1ed49f46…1fa3 · Hugging Face

Download

voicepacks/duc_an.pt

pt · 511 KB · SHA-256 2618daa25e96…076f · Hugging Face

Download

voicepacks/duc_duy.pt

pt · 512 KB · SHA-256 25573ca0caae…cdb1 · Hugging Face

Download

voicepacks/hung_thinh.pt

pt · 512 KB · SHA-256 875025a725e4…1f6d · Hugging Face

Download

voicepacks/mai_linh.pt

pt · 512 KB · SHA-256 d8f12f793161…292d · Hugging Face

Download

voicepacks/mai_loan.pt

pt · 512 KB · SHA-256 1c355dcea9c5…5c11 · Hugging Face

Download

voicepacks/manh_dung.pt

pt · 512 KB · SHA-256 f08d32366e78…f3f0 · Hugging Face

Download

voicepacks/my_yen.pt

pt · 511 KB · SHA-256 3edb2f25286b…d1d7 · Hugging Face

Download

voicepacks/ngoc_huyen.pt

pt · 512 KB · SHA-256 2ae069207ded…812a · Hugging Face

Download

voicepacks/phat_tai.pt

pt · 512 KB · SHA-256 64c9e5dcb74d…369a · Hugging Face

Download

voicepacks/storyvert.pt

pt · 512 KB · SHA-256 abb72c3ab157…f746 · Hugging Face

Download

voicepacks/thanh_dat.pt

pt · 512 KB · SHA-256 4d30926a819d…6418 · Hugging Face

Download

voicepacks/thuc_trinh.pt

pt · 512 KB · SHA-256 f46502d421b6…3f14 · Hugging Face

Download

voicepacks/tuan_ngoc.pt

pt · 512 KB · SHA-256 febd1b6e1e15…aea5 · Hugging Face

Download

Source excerpts

2 excerpts

--- language: - vi pipeline_tag: text-to-speech tags: - kokoro - vietnamese - text-to-speech - onnx license: apache-2.0 --- # Kokoro Vietnamese Fine-tuned Vietnamese Kokoro TTS artifacts. ## Files - `kokoro_vi.pth`: PyTorch Kokoro `KModel` checkpoint for inference. - `kokoro_vi.onnx`: ONNX Runtime export of the acoustic model. - `kokoro_vi_voicepack.pt`: default Vietnamese voicepack. - `config.json`: Kokoro config/vocab used by both PyTorch and ONNX inference. - `voicepacks/*.pt`: additional Vietnamese voicepacks. ## Install ```bash git clone https://github.com/iamdinhthuan/Kokoro-Vietnamese.git cd Kokoro-Vietnamese pip install -e . ``` For ONNX Runtime: ```bash pip install -e ".[onnx]" ``` ## PyTorch Inference ```bash kokoro-vietnamese \ --text "Xin chào, hôm nay tôi đang kiểm tra giọng đọc tiếng Việt." \ --output outputs/sample.wav \ --voice diem_trinh \ --device cuda ``` ## ONNX Runtime Inference ```bash kokoro-vietnamese-onnx \ --text "Tường nhà khách đã được sơn lại." \ --output outputs/onnx.wav \ --device cpu \ --print-phonemes ``` The ONNX CLI downloads `kokoro_vi.onnx`, `kokoro_vi_voicepack.pt`, and `config.json` from this repository when local paths are not provided. Install `onnxruntime-gpu` and pass `--device cuda` to use CUDAExecutionProvider when available. ## Export ONNX Yourself ```bash kokoro-vietnamese-export-onnx \ --output outputs/kokoro_vi.onnx ``` Vietnamese G2P is handled by `vig2p`, matching the GitHub inference and training code.

Source context: 41903 downloads · 21 likes · Pipeline text-to-speech · Repo contextboxai/Kokoro-Vietnamese