--- language: - hi license: apache-2.0 license_link: LICENSE pipeline_tag: text-to-speech datasets: - ViuAI/ViuAI_Hindi_TTS_50h tags: - murli - murli-v1 - text-to-speech - tts - hindi - flow-matching - ot-cfm - vocos - edge-ai --- # Murli V1.0 **Murli V1.0** is an ultra-lightweight Hindi text-to-speech (TTS) model trained with Optimal Transport Conditional Flow Matching (OT-CFM), built for clean, low-latency 24 kHz Hindi narration and long-form content. - **8.17M trainable acoustic parameters (21.70M with Vocos)**: RoPE Text Transformer, MAS Duration Predictor, and ConvNeXt-V2 1D OT-CFM vector field paired with a pretrained 24 kHz Vocos iSTFT vocoder - **Single-speaker studio Hindi**: Trained for 500 epochs on 49.28 hours (`24,019` clips) of `syspin_male_01` ([ViuAI/ViuAI_Hindi_TTS_50h](https://huggingface.co/datasets/ViuAI/ViuAI_Hindi_TTS_50h)) - **Fast ODE flow sampling**: 48-step Euler ODE solver with Sway Sampling (`-1.0`) and Classifier-Free Guidance (`1.5`) - **Long-form text**: Clause-level automatic chunking, contextual Anusvara normalization, `min_frames=2` duration guard, and zero-phase high-frequency de-buzzing ## Quickstart Install the inference runtime from the [Murli / TTS_10M code repository](https://huggingface.co/ViuAI/TTS_10M) and download the model weights from `ViuAI/Murli-V1.0`: ```bash git lfs install git clone https://huggingface.co/ViuAI/TTS_10M && cd TTS_10M pip install -r requirements.txt ``` Generate speech from the command line or launch the Gradio interface: ```bash python -c "from huggingface_hub import hf_hub_download; print(hf_hub_download('ViuAI/Murli-V1.0', 'model.safetensors'))" python infer.py --checkpoint model.safetensors --text "नमस्ते! यह मुरली हिंदी टेक्स्ट टू स्पीच मॉडल बोल रहा है।" ``` ```bash python app.py ``` ## Example Usage All samples below were synthesized unmodified from `ViuAI/Murli-V1.0` using the default sampling configuration (`steps=48`, `cfg_scale=1.5`, `temperature=0.667`, `speed=0.92`, `sway=-1.0`). ### Greeting Text: `नमस्ते! यह मुरली हिंदी टेक्स्ट टू स्पीच मॉडल बोल रहा है।` ### Storytelling Narration Text: `बहुत समय पहले एक शांत गांव में एक नेक किसान रहता था, जो सुबह सूरज उगने से पहले खेतों में काम करने निकल जाता था।` ### Conversational Hindi Text: `आज मौसम बहुत सुहावना है, और शाम को सभी दोस्त मिलकर नदी के किनारे टहलने जाने वाले हैं।` ### Python API Load `model.safetensors` directly from Hugging Face Hub and run long-form synthesis with the `TTS_10M` runtime: ```python import torch from huggingface_hub import hf_hub_download from config import TTS10MConfig from models.tts_engine import TTS10MEngine from data.text_cleaner import TextTokenizer from utils.checkpoint import load_checkpoint from utils.long_form import synthesize_long_text from utils.audio_sanity import save_audio cfg = TTS10MConfig() device = "cuda" if torch.cuda.is_available() else "cpu" weights_path = hf_hub_download("ViuAI/Murli-V1.0", "model.safetensors") model = load_checkpoint( TTS10MEngine(cfg.model, cfg.training).to(device), weights_path, device=device, ) model.eval() text = "नमस्ते! यह मुरली हिंदी टेक्स्ट टू स्पीच मॉडल बोल रहा है।" wav = synthesize_long_text( model, TextTokenizer(), text, torch.device(device), sample_rate=cfg.audio.sample_rate, num_steps=48, speed=0.92, cfg_scale=1.5, temperature=0.667, ) save_audio("murli_output.wav", torch.from_numpy(wav), cfg.audio.sample_rate) ``` ## Architecture & Evaluation Murli V1.0 decouples acoustic synthesis into an alignment/duration front-end and an 8-block ConvNeXt-V2 OT-CFM vector field operating in 100-bin HTK mel-spectrogram space (`24,000 Hz`, hop size `256`). | Component | Architecture | Parameters | | :--- | :--- | ---: | | Text Encoder | RoPE Transformer (4 layers, 4 heads, 256 dim) | 2,765,312 | | Duration Predictor | 1D ConvNeXt + FP32 Monotonic Alignment Search | 395,009 | | Mel Prior Projection | Linear Mel Prior Head | 25,700 | | CFM Vector Field | Mask-aware ConvNeXt-V2 1D (8 blocks, 7x7 DW) | 4,984,164 | | Vocoder | Pretrained Vocos 24 kHz iSTFT (`charactr/vocos-mel-24khz`) | 13,531,650 | | **Total System** | **End-to-End** | **21,701,835** | *Table 1. Parameter breakdown of Murli V1.0 (`8.17M` trainable acoustic model + `13.53M` Vocos vocoder).* | Property / Evaluation Metric | Murli V1.0 Value | | :--- | ---: | | Training Dataset (`syspin_male_01`) | 49.28 hours (24,019 clips) | | Total Training Epochs | 500 epochs (71,368 warm-started steps) | | Audio Output Format | 24,000 Hz Mono PCM (`100` HTK mel bins) | | Default Sampling Config | 48 ODE steps, CFG `1.5`, Temp `0.667`, Speed `0.92` | | Long-Form Story Evaluation (~900 words, 6m 30s) | ~1.0% WER (~99% word intelligibility) | *Table 2. Training specification and long-form Hindi story evaluation summary.* ## Limitations - **Devanagari character vocabulary**: Murli V1.0 operates on raw Devanagari characters (`vocab_size=512`) without an external G2P phonemizer, so occasional pronunciation slips (~1% WER) can occur on rare proper nouns or retroflex aspirates. - **Single read-speech speaker**: Trained exclusively on `syspin_male_01` studio read speech; calm narrative tone is best suited for audiobooks, narration, and assistant voices rather than multi-speaker dialogue. - **English loanwords**: Pure Devanagari input yields the highest accuracy; mixed Latin script words should be transliterated to Devanagari before synthesis. ## Links - [Murli V1.0 Model Weights](https://huggingface.co/ViuAI/Murli-V1.0) - [TTS_10M Source Code & Training Repo](https://huggingface.co/ViuAI/TTS_10M) - [ViuAI Hindi TTS 50h Dataset](https://huggingface.co/datasets/ViuAI/ViuAI_Hindi_TTS_50h) ## License This model is licensed under the [Apache License 2.0](https://huggingface.co/ViuAI/Murli-V1.0/blob/main/LICENSE). Please refer to the `LICENSE` file for full terms.