Views
No views yet
korva-tts.1from korva_tts import KorvaTTS
2
3tts = KorvaTTS() # downloads this repo on first run
4wav, sr = tts.synthesize("Xin chào", voice="female1", language="vi")
5
6import soundfile as sf
7sf.write("hello.wav", wav, sr) # 44.1 kHz mono| File | Size | Purpose |
|---|---|---|
text_encoder.onnx | ~27 MB | IPA text ids → text embeddings (style-conditioned) |
vector_estimator.onnx | ~126 MB | Flow-matching vector field for latent denoising |
vocoder.onnx | ~97 MB | LatentDecoder1D: 24-ch latent → 44.1 kHz waveform |
length_pred_style.onnx | ~1.5 MB | Style-token-conditioned duration prediction |
stats.npz | <1 MB | mean, std, normalizer_scale for latent denormalization |
reference_encoder.onnx, duration_predictor.onnx) are
intentionally NOT included — Korva v0.1 ships pre-baked voices only.text → text_encoder → text_emb
↓ ↓
length_pred_style → T_lat vector_estimator(noise, text_emb, style, …)
(N=8 flow-matching steps)
↓
denormalize + reshape
↓
vocoder → waveform (44.1 kHz)onnx_export_v1/README.md for
the full I/O contract (input/output names, dtypes, dynamic axes).vi) — via viphoneme G2Pen) — via espeak-ng (phonemizer-fork)<en>...</en> tags inside Vietnamese text.[gpu] extras.voices/male1.json in the korva-tts package is derived from the
LibriTTS corpus (CC-BY-4.0); see the package voices/ directory for full
attribution.