Fix backticks in Model Card README.md
Browse files17 unmodified lines18192021222324252627282930313233343536373839404 unmodified lines454647484950515253545556575859606162636465666717 unmodified linesUltra-lightweight (**4.55M–4.66M parameters**, **24 kHz mono**) Northern Vietnamese Text-to-Speech model designed to run **100% client-side in the browser** via single-thread ONNX Runtime Web (WASM SIMD)—no backend, no Python at runtime, works offline after first load.- **Code, G2P & live browser demo:** [github.com/datmt/tiny-voca-vi](https://github.com/datmt/tiny-voca-vi)- **Voice:** Single Northern (*miền Bắc*) female voice (distilled from Apache-2.0 , preset *Mai Anh*)- **Front-end:** deterministic rule-based Northern Vietnamese G2P ( / )—zero binary dictionary download.## Files Included| File | Params | Raw / Brotli | Native 1T RTF | General CER () | Minimal-Pair Tone Acc ||---|---:|---:|---:|---:|---:|| | 4.66M | / | (~102× RT) | **** | **** (ref ) || | 4.55M | / | (~116× RT) | | (ref ) || | 4.66M | PyTorch weights + config | — | — | — || | 4.55M | PyTorch weights + config | — | — | — |*(Both ONNX files store large Linear/Conv weights in FP16 with compute and fixed-kernel iSTFT—zero ops, bit-exact determinism.)*## Audio Samples (24 kHz, Free-Running E2E)| Sentence | Sample () ||---|---|| *Hôm nay thời tiết Hà Nội mát mẻ, nắng nhẹ và không có mưa.* | <audio controls src="https://huggingface.co/datmt24/tiny-voca-vi/resolve/main/samples/gen_000.wav"></audio> || *Giá cổ phiếu hôm nay tăng bốn phẩy năm phần trăm, đạt một nghìn hai trăm năm mươi điểm.* | <audio controls src="https://huggingface.co/datmt24/tiny-voca-vi/resolve/main/samples/gen_001.wav"></audio> |4 unmodified lines## ONNX Interface**Inputs:**- :- : (=silence/punct, =*ngang, huyền, sắc, hỏi, ngã, nặng*)- : (=onset, =medial/nucleus, =coda, =non-syllabic)- : ()- : ( to semitones)- : (, scales durations only)**Outputs:**- : (24 kHz mono PCM)- : (frames per token)## Known v0.1 Limitations- Trained on 4.1 hours of Vietnamese Wikipedia prose; open-syllable sentence-final *nặng* and *huyền* tones will improve significantly when scaling to 15–20 hours with dialogue/minimal-pair coverage.- Mild room-echo quality from unconstrained Vocos iSTFT phase.- Multi-syllable glued foreign loanwords (e.g., *Campuchia*, *Singapore*) and abbreviations (, ) need override dictionary entries in .## License & Attribution**Apache-2.0**. Architecture and export conventions adapted from [](https://github.com/n4ze3m/tiny-voca) (Apache-2.0); training audio distilled from [](https://huggingface.co/pnnbao-ump/VieNeu-TTS-v3-Turbo) (Apache-2.0) over (CC BY-SA 4.0); offline CTC alignment with (Apache-2.0).17 unmodified lines18192021222324252627282930313233343536373839404 unmodified lines454647484950515253545556575859606162636465666717 unmodified linesUltra-lightweight (**4.55M–4.66M parameters**, **24 kHz mono**) Northern Vietnamese Text-to-Speech model designed to run **100% client-side in the browser** via single-thread ONNX Runtime Web (WASM SIMD)—no backend, no Python at runtime, works offline after first load.- **Code, G2P & live browser demo:** [github.com/datmt/tiny-voca-vi](https://github.com/datmt/tiny-voca-vi)- **Voice:** Single Northern (*miền Bắc*) female voice (distilled from Apache-2.0 `pnnbao-ump/VieNeu-TTS-v3-Turbo`, preset *Mai Anh*)- **Front-end:** `< 12 KB` deterministic rule-based Northern Vietnamese G2P (`web/g2p.js` / `src/tiny_voca_vi/g2p.py`)—zero binary dictionary download.## Files Included| File | Params | Raw / Brotli | Native 1T RTF | General CER (`PhoWhisper`) | Minimal-Pair Tone Acc ||---|---:|---:|---:|---:|---:|| `onnx/tiny-voca-vi-v0.1-1024-fp16.onnx` | 4.66M | `13.84 MB` / `9.99 MB` | `0.0098` (~102× RT) | **`0.00%`** | **`79.2%`** (ref `89.6%`) || `onnx/tiny-voca-vi-v0.1-512-fp16.onnx` | 4.55M | `10.46 MB` / `8.74 MB` | `0.0086` (~116× RT) | `0.20%` | `70.8%` (ref `89.6%`) || `checkpoints/tiny-voca-vi-v0.1-1024.pt` | 4.66M | PyTorch weights + config | — | — | — || `checkpoints/tiny-voca-vi-v0.1-512.pt` | 4.55M | PyTorch weights + config | — | — | — |*(Both ONNX files store large Linear/Conv weights in FP16 with `Cast(FP16→FP32)` compute and fixed-kernel `conv_transpose1d` iSTFT—zero `DFT` ops, bit-exact determinism.)*## Audio Samples (24 kHz, Free-Running E2E)| Sentence | Sample (`v0.1-1024`) ||---|---|| *Hôm nay thời tiết Hà Nội mát mẻ, nắng nhẹ và không có mưa.* | <audio controls src="https://huggingface.co/datmt24/tiny-voca-vi/resolve/main/samples/gen_000.wav"></audio> || *Giá cổ phiếu hôm nay tăng bốn phẩy năm phần trăm, đạt một nghìn hai trăm năm mươi điểm.* | <audio controls src="https://huggingface.co/datmt24/tiny-voca-vi/resolve/main/samples/gen_001.wav"></audio> |4 unmodified lines## ONNX Interface**Inputs:**- `phoneme_ids`: `int64[1, T]`- `tone_ids`: `int64[1, T]` (`0`=silence/punct, `1..6`=*ngang, huyền, sắc, hỏi, ngã, nặng*)- `syl_pos`: `int64[1, T]` (`0`=onset, `1`=medial/nucleus, `2`=coda, `3`=non-syllabic)- `speed`: `float32[1]` (`0.7–1.5`)- `pitch_shift`: `float32[1]` (`-4.0` to `+4.0` semitones)- `pause`: `float32[1]` (`0.5–2.0`, scales `tone_id == 0` durations only)**Outputs:**- `audio`: `float32[1, N * 256]` (24 kHz mono PCM)- `durations`: `int64[1, T]` (frames per token)## Known v0.1 Limitations- Trained on 4.1 hours of Vietnamese Wikipedia prose; open-syllable sentence-final *nặng* and *huyền* tones will improve significantly when scaling to 15–20 hours with dialogue/minimal-pair coverage.- Mild room-echo quality from unconstrained Vocos iSTFT phase.- Multi-syllable glued foreign loanwords (e.g., *Campuchia*, *Singapore*) and abbreviations (`TP.HCM`, `8h30`) need override dictionary entries in `g2p`.## License & Attribution**Apache-2.0**. Architecture and export conventions adapted from [`n4ze3m/tiny-voca`](https://github.com/n4ze3m/tiny-voca) (Apache-2.0); training audio distilled from [`pnnbao-ump/VieNeu-TTS-v3-Turbo`](https://huggingface.co/pnnbao-ump/VieNeu-TTS-v3-Turbo) (Apache-2.0) over `wikimedia/wikipedia` `20231101.vi` (CC BY-SA 4.0); offline CTC alignment with `facebook/wav2vec2-lv-60-espeak-cv-ft` (Apache-2.0).
README.md+19-19