PAWP-TTS 1.5M (v3)
Phoneme-Aware Weight Programming for Compact Bilingual English–Nepali Speech Synthesis
PAWP-TTS 1.5M is a streaming, bilingual neural text-to-speech model supporting English, Nepali, and English–Nepali code-mixed speech in a single 1.49M-parameter (5.98 MB FP32) checkpoint. It synthesizes 24 kHz audio end-to-end (including the neural waveform decoder) without requiring a large language model at inference time.
This release (EXP-015a, v3) is fine-tuned on a fully rebuilt, lexicon-consistent v3 feature and forced-alignment cache, eliminating the v2 frontend-cache mismatch and removing a spurious Nepali /b/→/w/ error class entirely. Headline results come from independent re-scoring (see Evaluation Results).
- Code & Architecture: github.com/Firojpaudel/PAWP_TTS
- Audio Showcase Space: huggingface.co/spaces/Firoj112/pawp-tts-demo
- Ultra-Compact 300K Companion (
1.12 MB): Firoj112/pawp-tts-300k - Weight-Space Programmed Variant (Preliminary): Firoj112/pawp-tts-1.5m-wsp
- Audio Output: 24,000 Hz PCM (
ConvNeXt1D+iSTFTneural decoder)
Audio Samples (24 kHz, Single Target Voice)
Listen directly to unedited outputs from this checkpoint (model.safetensors, EXP-015a v3):
Nepali (Kathmandu Standard)
English
English–Nepali Code-Mixed (Devanagari + Latin)
Key Capabilities
- Single-Model Bilingual & Code-Mixed Synthesis: Handles pure English, pure Nepali, and mid-sentence Devanagari–Latin code-switching with a consistent single-speaker voice identity.
- Nepali Phonology: Preserves Kathmandu Nepali four-way stop laryngeal contrasts, dental vs. retroflex distinctions, alveolar affricates (
/ts, tsʰ, dz, dzʱ/), consonant gemination, and alveolar sibilant merger (स/श/ष -> /s/). - Deterministic Linguistic Frontend: Moves pronunciation rules out of the neural weights into a 105,868-word Nepali lexicon (roughly 99% rule/paradigm-generated), 76 context-dependent heteronym rules (152 readings), and a unified 128-token phonological inventory.
- Bounded-Lookahead Streaming: Causal depthwise ConvNeXt1D blocks and a framewise iSTFT decoder enable low time-to-first-audio (TTFA) on both CPU and GPU.
Evaluation Results
0. Independent Re-Scoring (headline results)
The training-time metrics below are partly circular: the PER recognizer also produced the training durations, and the ASR also filtered the synthetic training corpus. The model was therefore re-scored with two recognizers that played no part in training or data filtering: a second mixed-script ASR, and the public wav2vec2-xlsr-53-espeak-cv-ft phone recognizer with a shared 39-phone mapping.
EN CER (n=30) | NE CER (n=30) | EN PER (n=300) | NE PER (n=300) | Code-Mix WER / CER (n=160) | |
|---|---|---|---|---|---|
| Human recordings | 0.68% | 22.65% | 13.44% | 34.12% | — |
| PAWP-1.5M v3 | 2.35% | 19.46% | 15.14% | 38.10% | 18.13% / 8.80% |
- Under independent recognizers the model is close to, but not better than, human speech. The below-human CER in the next table is an artifact of the circular recognizer.
- The independent recognizers are weak on Nepali, so treat absolute Nepali numbers as coarse.
- The 160-sentence code-mixed set (4.7 language switches per sentence, no overlap with training text) is released in the GitHub repo.
- Running the code-mixed graph (both language residuals active) costs +29% per chunk (1.24 ms vs 0.96 ms per 60 ms chunk on 4 CPU threads).
1. Training-Time Metrics (partly circular; see above)
Held-out ASR WER/CER (one recognizer; n=30 English, n=30 Nepali, n=9 code-mixed sentences) plus Phoneme Error Rate (PER) on untouched test.jsonl (n=300 Nepali + n=300 English utterances, ctc_aligner_v3.pt). Human recordings of the ASR sentences scored 2.63% / 0.75% (EN), 11.60% / 3.82% (NE), and 25.91% / 12.88% (code-mixed) on the same recognizer; this is an intelligibility proxy, not a naturalness or quality comparison.
| Model / Checkpoint | English WER / CER (n=30) | Nepali WER / CER (n=30) | Code-Mixed WER / CER (n=9) | Untouched Test PER (n=300+300) |
|---|---|---|---|---|
| Human Reference Audio (same recognizer) | 2.63% / 0.75% | 11.60% / 3.82% | 25.91% / 12.88% | — |
| PAWP-1.5M Base (Pre-FT, Step 92k, v2) | 3.14% / 1.01% | 12.02% / 3.12% | 16.18% / 11.02% | — |
PAWP-1.5M Polished (EXP-012, v2) | 4.86% / 2.79% | 11.41% / 2.66% | 10.99% / 4.10% | — |
PAWP-1.5M v3 (EXP-015a, This Release) | 4.02% / 1.50% | 12.35% / 1.75% | 12.32% / 5.32% | NE 5.04% · EN 4.02% |
2. Frontend & Acoustic Minimal-Pair Checks
| Check | Result | Notes |
|---|---|---|
| Internal 77-pair G2P/mel contrast smoke test | 77/77 (100.0%) | Internal frontend symbol + non-silent/mel-differs check (not the published NepTTS-Bench) |
| CTC-scored acoustic 77-pair contrast check | 64/77 (83.1%) distinct · 45/77 (58.4%) exact-both | Scored acoustically with ctc_aligner_v3.pt (four_way_laryngeal 11/11, schwa_and_flapping 11/11, gemination 9/11) |
Hindi /ʃ/ symbol bleed on Nepali native test words | 0.0% | Frontend alveolar /s/ mapping |
Out-of-Vocabulary / <unk> Rate | 0.0% | Across EN, NE, code-mixed, and 77-pair internal suites |
| 300-item lexicon self-consistency check | 300/300 (100.0%) | Lookup regression test sampled from the lexicon (not reviewed by native speakers) |
4-Metric Parameter & Latency Profile
All learned inference components are counted (phoneme/language/boundary embeddings, encoder, duration predictor, pitch/voicing/energy predictors, acoustic network, speaker embedding, and neural iSTFT waveform decoder).
| Metric | Value |
|---|---|
total_params | 1,490,390 |
unique_stored_params | 1,490,390 |
effective_compute_params | 1,293,750 (~106.1 MMAC/s) |
serialized_size_bytes | 5,986,400 B (5.98 MB FP32 safetensors; ~2.98 MB FP16; ~1.49 MB INT8) |
Streaming Latency Benchmark
Measured on the folded structural inference graph (batch_size=1, 3 warmup utterances discarded, 30 timed utterances, 60.0 ms first chunk at 24 kHz / hop=240). Frontend/G2P time is reported separately and excluded from the neural streaming TTFA column:
| Backend | Hardware & Threads | Frontend/G2P p50 / p95 | Neural Streaming TTFA (p50 / p95 / p99) | Real-Time Factor (RTFx / RTF) |
|---|---|---|---|---|
| ONNX Runtime (CPU, folded) | Linux x86_64 CPU (4 threads) | 0.159 / 0.330 ms | 1.11 / 1.42 / 1.52 ms | 173.36x (0.0058) |
| PyTorch (CPU, folded) | Linux x86_64 CPU (4 threads) | 0.171 / 0.198 ms | 3.26 / 3.86 / 4.21 ms | 74.49x (0.0134) |
| PyTorch (CUDA, folded) | NVIDIA GeForce RTX 4090 (1 thread) | 0.165 / 0.192 ms | 3.30 / 3.67 / 3.72 ms | 96.36x (0.0104) |
Quickstart
git clone https://github.com/Firojpaudel/PAWP_TTS.git
cd PAWP_TTS
uv sync
hf download Firoj112/pawp-tts-1.5m model.safetensors config.yaml --local-dir ./checkpoints/pawp-1.5m
uv run pawp synth \
--checkpoint ./checkpoints/pawp-1.5m/model.safetensors \
--config ./checkpoints/pawp-1.5m/config.yaml \
--text "तपाईंको flight को ticket confirm भयो, please check your email." \
--output codemix.wav
Training Summary
Training used public corpora (LibriSpeech, LJSpeech, OpenSLR Nepali) plus additional Nepali, code-mixed and single-voice target-speaker material prepared for this research.
- Phase 1 (Base Multi-Speaker Pretraining): 92,000 steps with CTC Viterbi forced-alignment durations, multi-period/multi-resolution GAN discriminators (MPD+MRD), and free-running prosody conditioning (
p=0.5). - Phase 2 (Single-Speaker Target-Voice Fine-Tuning & Polish): 30,000 steps on a single NVIDIA RTX 4090 (BF16) blending single-voice target-speaker clips with a replay buffer.
- Phase 3 (Clean
v3Cache Re-Alignment & Fine-Tune,EXP-014+EXP-015a): Rebuilt the entire136,807-utterance feature cache using the current frontend + 105k lexicon, retrained the CTC aligner (ctc = 0.614), re-extracted durations (~3xcleaner), and fine-tuned for 10,000 steps (lr: 3e-4).
Limitations
- Single target speaker identity at inference time (no zero-shot voice cloning).
- Subtle iSTFT phase coloration may occasionally be audible on sustained fricatives or vowels compared to larger autoregressive audio-codec models.
- No listening test (MOS) has been run yet. Training-time metrics are partly circular. The independent recognizers used to address this are weak on Nepali, and the monolingual held-out ASR sets are small (
n=30per language).
Responsible Use
Do not use this model to impersonate real people or to produce audio presented as genuine recordings of a person without consent.
License
- Weights, ONNX graphs, and audio samples: Licensed under CC BY 4.0 (attribution required; see
LICENSEandNOTICEin this repository, and cite as below). - Source code: Licensed under the Apache License 2.0 at https://github.com/Firojpaudel/PAWP_TTS.
Citation
If you use these weights, please cite PAWP-TTS.
@software{paudel2026pawptts,
author = {Paudel, Firoj},
title = {{PAWP-TTS}: Phoneme-Aware Weight Programming for Compact Bilingual English--Nepali Speech Synthesis},
year = {2026},
url = {https://github.com/Firojpaudel/PAWP_TTS}
}