Omniis Codec — Vietnamese-first Neural Audio Codec
Omniis Codec là một waveform-domain neural audio codec train từ đầu, không dùng lại weights của người khác. Thiết kế cho tiếng Việt, phục vụ hệ thống TTS OmniisTTS-VN trong Omniis-Labs research program.
Overview
| Property | Value |
|---|---|
| Type | Waveform-domain neural audio codec |
| Sample Rate | 24,000 Hz |
| Frame Rate | 25 fps |
| Codebooks | 4 (integration-only) |
| Codebook Size | 1,024 per level |
| Bitrate | ~50 kbps |
| Language | Vietnamese-first |
| Training | From scratch (no pretrained weights) |
Research status: Checkpoint thật chưa có. Operating point hiện tại là
integration-only— runner dựng codec mới từ operating point (không load weights). Chạy thật đòi checkpoint qua gate experiment trước.
Architecture
waveform x ──▶ ConvEncoder Eθ ──▶ z [B, C, T]
│
▼
ResidualVQ (K tiers)
│
q(z) = Σ qₖ
│
▼
ConvDecoder Dφ ──▶ x̂ [B, 1, N]
│
└──▶ codes [B, T, K] int32 ← lưu/upload ở đây
Key design decisions:
| Feature | Detail |
|---|---|
| Downsampling | Exact stride decomposition ∈ {2,3,4,5,6,8} — pad bất đối xứng cho stride lẻ |
| Quantizer | EMA codebook update (van den Oord 2017 A.1), dead-code reinit |
| Gradient | Straight-through estimator qua quantizer |
| Decoder | Neural decoder — đường product, không Griffin-Lim |
| Training | λ_wav·L_wav + λ_mel·L_mel + λ_stft·L_stft + λ_adv·L_adv + λ_commit·L_commit |
| EMA discipline | Update ngoài autograd (bài học từ EXP-0001: graph sống → OOM) |
Operating Points
| Point | Sample Rate | Frame Rate | Codebooks | Codebook Size | Bitrate | Use case |
|---|---|---|---|---|---|---|
integration-only |
24,000 Hz | 25 fps | 4 | 1,024 | ~50 kbps | Pipeline test |
product-A |
24,000 Hz | 50 fps | 4 | 1,024 | ~100 kbps | Product candidate |
product-B |
24,000 Hz | 25 fps | 8 | 1,024 | ~100 kbps | Product candidate |
Dataset Card
| Dataset | Source | License | Status |
|---|---|---|---|
vietbiblevox-aligned |
ntt123/VietBibleVox-aligned | CC-BY-SA-4.0 | 🟡 Pending encode |
vivoice |
capleaf/viVoice | CC-BY-NC-4.0 | 🟡 Pending encode |
Repo này là codec artifact store — chứa codes đã encode, không phải source model. Source code nằm ở Omniis-Labs.
Artifact Format
Mỗi dataset được encode thành artifact layout:
datasets/<dataset_id>/<dataset_version>/<codec_revision>/
│
├── dataset-manifest.json ← §34.1: 22 required fields
├── source-manifest.json ← hash từng file dataset nguồn
├── code-index.jsonl ← 1 dòng JSON/sample
├── statistics.json ← entropy, dead-code rate, throughput
├── provenance.yaml ← encoder + git SHA + config SHA
│
└── codes/
├── shard-00000.tar ← int32 row-major [T, K], max 512 MB
├── shard-00001.tar
└── ...
Shard format: TAR archive, mỗi sample là member <sample_id>.codes chứa int32 little-endian row-major [T, K].
Quality Claim
quality_claim: NONE— Artifact upload thành công KHÔNG phải bằng chứng chất lượng âm thanh. Benchmark chạy sau khi có checkpoint thật.
Mọi kết luận khoa học mang một trong 5 dạng: POSITIVE / NEGATIVE / INCONCLUSIVE / INVALID / BLOCKED.
Provenance
Mỗi artifact bao gồm:
dataset_manifest_sha256— hash toàn bộ dataset nguồncodec_config_sha256— hash config codec (operating point pin)artifact_sha256— hash chuẩn của toàn bộ artifact filesgit_sha— commit SHA của Omniis-Labs lúc encodecreated_at— timestamp UTC
Source Code
Source code của Omniis Codec nằm trong repo Omniis-Labs:
git clone https://github.com/Teedyyy/Omniis-labs.git
cd Omniis-labs
uv sync --extra ops
Key modules:
src/omniis/models/codec.py— OmniisCodecsrc/omniis/codecops/— Codec queue pipelineconfigs/codec/omniis-codec-queue.yaml— Reusable config
License
Mã nguồn Omniis-Labs: xem LICENSE.
Codec codes trong repo này là derivative data — license kế thừa từ dataset nguồn (source_license trong dataset-manifest.json). Upload artifact với quality_claim: NONE không phải tuyên bố phù hợp cho training thương mại.
Related
- Omniis-Labs — Research repository chính
- OmniisTTS-VN — TTS model (sắp ra mắt)
- Constitution — 10 luật bất biến
Built by Omniis-Labs · Vietnamese-first speech research
- Downloads last month
- 38