File size: 1,602 Bytes
3a34d7a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # ===================================================================== # EdgeSanskrit β Requirements # ===================================================================== # Python 3.10+ required. # Install with: pip install -r requirements.txt # ===================================================================== # ββ Phase 1: Kokoro CPU TTS ββββββββββββββββββββββββββββββββββββββββββ # Kokoro (StyleTTS2-based, 82M params) for fast local CPU inference kokoro>=0.9.4 huggingface_hub torch numpy>=1.24.0 soundfile>=0.12.1 python-dotenv>=1.0.0 loguru # Phase 3 dependencies (Web UI) fastapi>=0.111.0 uvicorn>=0.30.1 python-multipart>=0.0.9 # ββ Phase 2: IndicF5 Authentic Sanskrit Chanting βββββββββββββββββββββ # IMPORTANT: You MUST use AI4Bharat's IndicF5 fork from GitHub. # The PyPI package `f5-tts` is different code and its infer_process CRASHES. # Install the exact production commit used by Vagdhenu: git+https://github.com/ai4bharat/IndicF5.git@13f7c4d627cc10111aea8fe9c0039462cacacdc7 # Vocos vocoder (mel-to-audio decoder, required by IndicF5) vocos>=0.1.0 # IndicF5 transformer backbone dependency x-transformers>=2.19.7 # Indic script transliteration (Sanskrit β Kannada β SLP1 etc.) # Required by vagdhenu/src/prep_text.py for Devanagari β Kannada routing indic-transliteration # Audio loading / processing librosa torchaudio # SafeTensors format for loading IndicF5 base model weights safetensors r e q u e s t s > |