Spasht — Offline Hindi Screen-Reader Voice

Model Card: Spasht (स्पष्ट) — v0.1.0

Model Summary

Spasht (स्पष्ट, "clear / crisp") is a tiny (6.12M parameters, 23.90 MiB FP32 ONNX) fully offline Hindi and Hinglish voice built specifically for screen-reader accessibility (NVDA 2026.1+ on 64-bit Windows and offline browsers via ONNX Runtime Web).

Instead of a heavy neural vocoder, it pairs a compact non-autoregressive phoneme-to-frame transformer with a 25,862-parameter cepstral source-filter DSP head (24 kHz mono, 10.0 ms frame hop), running 27×–37× faster than real time on a single CPU thread with zero cloud calls, instant sentence/clause streaming, immediate cancellation, and dedicated "char" vs "utterance" pronunciation modes.

  • Model artifact: hindi_tts.onnx (opset 14, 45 standard ONNX ops, FP32, 23.901 MiB)
  • NVDA 2026.1+ Add-on: spasht-0.1.0.nvda-addon (48.72 MiB, self-contained 64-bit Windows x64)
  • Source repository: github.com/Ajeetkrup/Spasht
  • Model repository: huggingface.co/Ajeet-001/Spasht
  • Promoted checkpoint: ema_step050000.pt (step 50,000 EMA weights from the clean 30k → 60k GAN polish run)
  • Voice: Single neutral studio Hindi female speaker (hi_IN)
  • Code license: Apache License 2.0 (clean-room implementation from scratch)
  • Model weights & derived dataset license: CC-BY-4.0 (with required attribution to AI4Bharat Rasa)

Audio Demos (hindi_tts.onnx, 24 kHz Mono CPU)

All samples below were synthesized directly on CPU with the released hindi_tts.onnx + hindi_frontend.js pipeline (no post-hoc cherry-picking or studio mastering):

Category Text Rate Demo
Hindi — News / Prose आज सुबह दिल्ली और उत्तर भारत के कई हिस्सों में हल्की बारिश के बाद मौसम सुहावना हो गया है। 1.0× WAV
Hindi — Narrative किताबें हमें न केवल नई जानकारी देती हैं, बल्कि दुनिया को देखने का एक नया नज़रिया भी सिखाती हैं। 1.0× WAV
Hindi — Announcement & Numbers यात्रीगण कृपया ध्यान दें, गाड़ी संख्या 12302 राजधानी एक्सप्रेस सुबह 08:30 पर प्लेटफॉर्म नंबर 4 पर आने वाली है। 1.0× WAV
Hindi — Conversational अगर आपको कोई भी कठिनाई हो, तो बेझिझक हमें संदेश भेजें, हम आपकी पूरी सहायता करेंगे। 1.0× WAV
Hindi — Accessibility Intro स्पष्ट, एक तेज़ और पूरी तरह ऑफ़लाइन हिंदी आवाज़ है, जो बिना इंटरनेट के भी साफ़ और सहज सुनाई देती है। 1.0× WAV
Hindi — 4-Way Stops & Geminates कल खल गल घल, पता और पत्ता, कॉल और काल, सभी ध्वनियाँ साफ़ सुनाई देती हैं। 1.0× WAV
Hinglish — Banking, ₹ & OTP आपका OTP 482910 है। ₹1,250.50 UPI द्वारा ट्रांसफ़र किए गए हैं, कृपया इसे किसी के साथ शेयर न करें। 1.0× WAV
English — Screen-Reader UI Open Wi-Fi settings to enable offline mode, check new notifications, or download the latest update. 1.0× WAV
English — Accessibility Intro This lightweight offline voice is built for clear, fast, and responsive screen reading on everyday laptops. 1.0× WAV
English — Messages & Calendar You have two unread messages and a team meeting tomorrow morning. Press enter to open your inbox. 1.0× WAV
Hindi — Fast Screen-Reader Mode आज सुबह दिल्ली और उत्तर भारत के कई हिस्सों में हल्की बारिश के बाद मौसम सुहावना हो गया है। बैटरी 85% बची है और फ़ोन ऑफ़लाइन है। 2.0× WAV
English — Fast Screen-Reader Mode Open Wi-Fi settings to enable offline mode, check new notifications, or download the latest update. 2.0× WAV

Intended Use

Primary Uses

  • Daily offline Hindi and Hinglish screen reading in 64-bit NVDA 2026.1+ (spasht-0.1.0.nvda-addon) and low-latency browser applications.
  • Fast navigation across UI labels, banking/OTP messages, numbers, dates, rupees (₹), and character-by-character cursor review (single Devanagari consonants with preserved schwa, isolated matras, halant, and symbols).
  • High-speed listening: consonant- and geminate-protected neural duration scaling up to 2.0×, with pitch flattening above 1.6× and Apache-2.0 waywardgeek/sonic time-stretching from 2.0× up to 6.0× (NVDA Rate Boost).

Out-of-Scope Uses

  • Expressive audiobook narration, singing, or emotional conversational voice acting (the model prioritizes crisp, low-latency, neutral intelligibility over naturalness).
  • Voice cloning, speaker impersonation, or deceptive synthetic media.
  • Languages other than Hindi and Indian-English loanwords/Hinglish.

Architecture & Inference Contract

  • Shared Deterministic Frontend (frontend/dist/hindi_frontend.js, 1.01 MiB):
    • Single zero-dependency TypeScript/JS bundle executed identically in browsers, Node, and Python 3.13 / NVDA (python-quickjs-ng).
    • Explicit mode: "utterance" | "char" separation.
    • NFC + <consonant + U+093C> nukta merging, Candra vowels (ऑ/ॉ, ऍ/ॅ), homorganic nasals & nasalized vowels, ज्ञ/क्ष/ऋ, geminates, clean-room rule-based Hindi schwa deletion, and CMUdict Indian-English Devanagari respelling with explicit halants (्) on consonant clusters.
    • Canonical 69-token IPA/pause inventory (<pad>, <bos>, <eos>, <unk>, SIL, ,, ., ?, !, 21 oral/nasal vowels, 39 consonants).
  • Acoustic + DSP Model (6,115,813 total parameters):
    • Phoneme encoder + duration/pause predictor + dynamic length regulator + Frame Transformer A + F0/voicing/energy predictors + Frame Transformer B + CepstralDSPHead (64-order harmonic & noise cepstral filters, pulse-train + gated noise synthesis, exact 240-sample / 10.0 ms hop, 960-sample periodic Hann window, 1024-pt real CT-DFT on ONNX export).
  • ONNX Graph Inputs / Outputs (batch_size = 1, dynamic L tokens and T frames):
    • Inputs: phoneme_ids (int64 [1, L]), dur_scales (float32 [1, L]), min_durs (int64 [1, L]), pitch_scale (float32 [1]), noise (float32 [1, N] unit Gaussian, N >= T * 240).
    • Outputs: wav (float32 [1, T * 240] in [-0.99, 0.99]), durations (int64 [1, L] frames).

Training Data & Procedure

Hybrid Single-Speaker Corpus (13.25 hours kept from 12,507 candidate clips)

All clips were resampled to 24 kHz mono, loudness-normalized to -20 dBFS RMS (peak ceiling 0.98), silence-trimmed on the locked 10.0 ms hop grid, aligned from scratch with Montreal Forced Aligner (MFA), pitch-extracted with FCPE, and filtered with normalized ai4bharat/indicconformer Hindi ASR CER/PER and WavLM speaker similarity (243 clips rejected).

Subset Source License Kept Clips Kept Hours Role
Base Studio Sentences ai4bharat/Rasa (Hindi Female) CC-BY-4.0 7,529 9.156 h Real studio acoustics & prose
Cloned UI / Char / Hinglish ai4bharat/IndicF5 anchored on same Rasa speaker MIT 4,735 4.094 h Phone/desktop UI, numbers, Hinglish, isolated chars/matras/symbols
Total Combined Train 11,652 (12.578 h) / Val 612 (0.672 h) CC-BY-4.0 12,264 13.250 h Single locked voice (223.87 Hz mean F0)

Training & Quality Guardrails

  1. 8,000-step pre-GAN spectral pilot: Multi-resolution STFT + mel + duration/F0/voicing/energy losses + auxiliary mel head + EMA weights.
  2. MPD + MRD GAN training & harmonic-alignment fix: Clean-room 5-scale Multi-Period Discriminator + 3-scale Multi-Resolution Discriminator (~2.4M params). During initial listening on step 40k, scheduled sampling (use_gt_prosody=False) fed predicted F0 into the DSP head, causing 1–4 kHz harmonic misalignment against gt_wav and collapsing voiced 1–4 kHz HNR from +12.48 dB to -0.7 dB (audible buzzing). Locking f0_for_dsp = exp(gt_log_f0) and voicing_for_dsp = vuv during training plus adding a live voiced_1_4khz_hnr_db >= 10 dB validation guard eliminated the collapse across the clean 30k → 60k polish run, where step 50,000 achieved the best overall quality.

Evaluation Results (ema_step050000.pt / hindi_tts.onnx)

Intelligibility, Acoustics & Speaker Seam (612-clip held-out validation set)

Metric Result Reference / Notes
Full Val CER (all 612 clips, IndicConformer) 2.042% Ground truth: 1.884%
Multi-word Val CER (593 clips) 1.817% Ground truth: 1.774% (PER: 1.838%)
Studio Rasa Val CER (376 clips) 1.860% Ground truth: 1.609%
Cloned IndicF5 UI Multi-word CER (219 clips) 1.790% Ground truth: 2.108%
Voiced 1–4 kHz Harmonic-to-Noise Ratio (HNR) +14.17 dB Guard threshold: >= +10.0 dB
Teacher-forced val_mel_wav / val_mr_stft 0.4802 / 1.0409 val_vuv_acc = 96.02%, dur_MAE = 1.80 frames
Unvoiced Fricative Gate (harm_rms / noise_rms) 0.0017 / 0.0201 11.6× noise dominance (no periodic /s, ʃ, f/ hiss)
Voiced Aspirate Breath Ratio (noise / harm) 0.327 Preserves breathy Hindi घ, ध, भ, ढ, झ
Rasa vs Cloned UI Speaker Seam (WavLM cosine) 0.9826 Median gap vs real Rasa: 0.0038 (0.9600 vs 0.9563)
Geminate Closure Ratio (पता vs पत्ता at 1.0×) 1.67× 9 frames singleton vs 15 frames geminate

1-Thread CPU ONNX Runtime Benchmarks & PyTorch Parity (onnx_export_report.json)

Test Case Phonemes Rate Audio (s) Median CPU (ms) RTF Speed (× Realtime) Max Abs Diff vs PyTorch
Isolated char क (char mode) 4 1.0× 0.38 s 13.83 ms 0.0364 27.5× 5.67e-5
Short UI phrase 27 1.0× 2.10 s 56.21 ms 0.0268 37.4× 1.63e-4
4-way stops (2.0×) 27 2.0× 1.22 s 34.08 ms 0.0279 35.8× 1.68e-4
18-word clause 57 1.0× 5.24 s 148.11 ms 0.0283 35.4× 2.60e-4

Honest Limitations & Known Failure Modes

  1. High-speed ASR metrics: Off-the-shelf indicconformer ASR is trained on 1× speech and degrades sharply at 2× (53.6% probe CER) and 3× (84.1% probe CER) even when human listeners still comprehend fast speech.
  2. Pure-DSP acoustic character: The 25.8k-parameter cepstral DSP head trades studio naturalness for tiny size and ~35× 1-thread CPU speed. A slight synthetic buzz may remain audible compared to neural vocoders; a ~2.2M Vocos-style harmonic-prior vocoder remains a documented stretch option only if listeners dislike the DSP timbre.
  3. Rare proper nouns & OOV English words: Worst validation errors occur on rare multi-word proper nouns or compound loanwords (e.g., इंटरग्लोब एविएशन लिमिटेड, कमला दास माधवीकुट्टी, Button 11, checked). Unseen English words outside the pruned CMUdict lexicon fall back to a rule-based Devanagari transliterator.
  4. Single voice & platform scope: Ships one female hi_IN voice. The NVDA add-on targets 64-bit Windows NVDA 2026.1+ (Python 3.13, x86-64) and does not support legacy 32-bit NVDA 2025.x.

Attributions & Licensing

  • AI4Bharat Rasa (huggingface.co/datasets/ai4bharat/Rasa) — CC-BY-4.0. Base single-speaker studio Hindi audio (~9.16 h kept). Attribution to AI4Bharat is required on derived datasets, weights, and documentation.
  • AI4Bharat IndicF5 (huggingface.co/ai4bharat/IndicF5) — MIT License. Used to synthesize the ~4.09 h single-speaker UI/character/Hinglish supplement anchored on the same Rasa speaker.
  • Architectural foundations: Implemented from scratch for Hindi/Hinglish screen-reader use, building on FastSpeech 2 (non-autoregressive encoder with explicit duration, pitch, and energy prediction), DDSP and the Neural Homomorphic Vocoder (NHV) (differentiable cepstral source-filter synthesis), and HiFi-GAN / UnivNet (Multi-Period and Multi-Resolution waveform discriminators).
  • CMU Pronouncing Dictionary (CMUdict) — BSD-style permissive license. Pruned and mapped via Indian-English rules into Devanagari phonetic respellings.
  • waywardgeek/sonic (github.com/waywardgeek/sonic) — Apache License 2.0. Used for >2.0× time-stretching (via WASM in the browser demo and NVDA's bundled 64-bit sonic.dll in the NVDA add-on).
  • Runtime libraries: ONNX Runtime (MIT), NumPy (BSD-3-Clause), python-quickjs-ng (MIT).
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train Ajeet-001/Spasht

Papers for Ajeet-001/Spasht