Spaces:
Paused
Paused
Commit History
5 days ago
-
Claude: voice back to ritu; add SARVAM_TEMPERATURE (expressiveness) setting
Sumedhd33ef6b -
Claude: change Sarvam voice to ishita
Sumedh51e044b -
Claude: change Sarvam voice to roopa
Sumedh1c52eaa -
Revert "Claude: LLM_MODEL switch + eval/llm_eval.py model comparison harness"
SumedhThis reverts commit b86fc8131497014d7f651349c8087af3da10743e.cc6fbab -
Claude: LLM_MODEL switch + eval/llm_eval.py model comparison harness
Sumedhb86fc81 -
Claude: single TTS_ENGINE switch (sarvam/kokoro/browser); web UI now plays server TTS
Sumedh315be98 -
Claude: add Sarvam Bulbul (en-IN) TTS with Kokoro fallback and story audio cache
Sumedhf073260
-
Claude: make bot interactive + friendly + safe for kids
Sumedh- Rewrite system prompt (coach_core.fixed_prompt) as warm 'Hope' buddy persona: asks story questions, answers child's questions, allows small detours, gently corrects WRONG answers using story facts, never corrects grammar/English, encourages, and refuses rude/scary/off-topic content. - Rewrite first-turn prompt with delimited story block. - Add word-filter guardrail (_is_inappropriate / _sanitize_reply, English + romanized Hindi): inappropriate input gets a gentle redirect without hitting the LLM and without advancing the question count; LLM output is sanitized too. - Soften final-turn wrap-up; no grammar correction.59adc7c -
Claude: revert to working Kokoro checkpoint (af_bella, US English)
SumedhRoll back the Hindi-voice experiment. app.py matches kokoro-tts-checkpoint (eaac637).b738a55 -
Claude: switch Kokoro to Hindi female voice (hf_alpha) for Indian accent
SumedhUse lang_code 'h' + hf_alpha for an Indian-accented voice. Voice and lang are now env-configurable (KOKORO_VOICE, KOKORO_LANG) — set af_bella/'a' to revert to US English. Uses espeak-ng (already in Dockerfile).795c670 -
Claude: revert TTS to Kokoro (af_bella) — restore kokoro-tts-checkpoint state
SumedhRolls back the Svara/parler-tts experiments. app.py, requirements.txt and Dockerfile now match commit eaac637 (kokoro-tts-checkpoint). The strengthened Qwen system prompt in coach_core.py is retained.8255c53 -
Claude: speed up svara-tts via batched chunk generation + sdpa + token cap
Sumedh- Synthesize sentence chunks in parallel batches (SVARA_BATCH_SIZE=4) in one generate() call instead of sequentially — big win for multi-chunk story intro - Left-pad tokenizer for batching; OOM-safe fallback to one-by-one - attn_implementation=sdpa for faster attention on T4 - Cap max_new_tokens 2048->1200 (SVARA_MAX_NEW_TOKENS) to bound worst case8e7b1dd -
Claude: replace indic-parler-tts with svara-tts (kenpath/svara-tts-v1)
SumedhSwaps TTS to Svara — an Orpheus-style Indian multilingual model (Llama backbone generating discrete SNAC audio tokens). Uses English (Female) Indian-English speaker. Adds snac dep, removes parler-tts. Reuses sentence-chunking. Output 24kHz via SNAC decoder. fp16 on T4 (no bf16).5fccb12 -
Claude: chunk long text for indic-parler-tts to fix gibberish audio
SumedhParler-TTS degrades to gibberish past ~30s of audio. Split text into sentence-based chunks (~240 chars each), synthesize each separately, and concatenate with 0.25s gaps. This fixes garbled output on long passages like the story intro (greeting + full story + question).7dbf8f0 -
Claude: fix indic-parler-tts description tokenizer loading + pin parler-tts to Dec 2024 commit
Sumedh- Load description tokenizer from model.config.text_encoder._name_or_path (per official AI4Bharat example) instead of a nonexistent subfolder='description_tokenizer', which caused 'Unrecognized model' - Pass attention masks to generate() for cleaner output - Pin parler-tts to commit d108732 (Dec 2024) to match indic-parler-tts22b006c -
Claude: replace Kokoro TTS with ai4bharat/indic-parler-tts for Indian female voice
SumedhSwaps the TTS engine from Kokoro (American English) to Indic Parler-TTS (ai4bharat/indic-parler-tts) which generates warm Indian-accented English speech via a text voice description prompt. Removes espeak-ng dependency from Dockerfile. Checkpoint of previous state tagged: kokoro-tts-checkpoint.b0b9779
-
Replace MeloTTS with Kokoro TTS (af_bella voice)
Sumedh +1: Claude Sonnet 4.6- Swap TTS engine: MeloTTS → Kokoro TTS (kokoro>=0.9.4) Voice: af_bella (warm American female, child-friendly) Speed: 0.75 (25% slower than normal — clear for all ages) Kokoro is ~82MB, fast on GPU, no complex deps - Dockerfile: remove cmake, mecab, MeloTTS pip install, NLTK download, MeCab patch heredoc. Keep espeak-ng (Kokoro English phonemizer needs it) - requirements.txt: replace MeloTTS comment with kokoro>=0.9.4 - Delete torchaudio/__init__.py stub (was only needed for MeloTTS) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7d38e13 -
Claude: use speed 0.68 for all classes (slowest, clearest for kids)
Sumedh8e38352 -
Claude: fix speaker ID EN-INDIA → EN_INDIA (underscore not hyphen)
Sumedhd233faa -
Claude: replace sys.modules torchaudio hack with a real stub package in repo
SumedhA torchaudio/ package directory in /home/user/app/ is found by Python before site-packages, so the real torchaudio (which needs libcudart.so.13) is never imported. The stub implements only torchaudio.save() via soundfile. This also fixes the importlib.__spec__ is None error since Python loads the package normally with a proper __spec__.2b6532f -
Claude: fix torchaudio stub — set __spec__ so transformers importlib.find_spec does not crash
Sumedhtransformers checks torchaudio availability via importlib.util.find_spec('torchaudio') which raises ValueError if module.__spec__ is None (the default for types.ModuleType). Fix: set __spec__ = ModuleSpec('torchaudio', loader=None) on the stub.838eb7f -
Claude: stub torchaudio with soundfile to fix libcudart.so.13 CUDA version mismatch
SumedhMeloTTS imports torchaudio only for torchaudio.save(path, tensor, sr). The real torchaudio wheel requires libcudart.so.13 (CUDA 13) but our base image is CUDA 12.1. Fix: inject a sys.modules stub before any melo import that replaces torchaudio.save with soundfile.write. No CUDA dependency at all for audio saving. Remove torchaudio from requirements.txt.c100816 -
Claude: add torchaudio dep + fix melo_tts_to_wav returning None instead of empty string
Sumedh- torchaudio is a hard import in melo/api.py line 7 — must be installed - melo_tts_to_wav now returns None (not '') on failure so Gradio does not try to open '' as a file path (which resolves to CWD and raises IsADirectoryError)804166e -
Claude: enable show_error=True in Gradio launch for debugging
Sumedhbe357e9 -
Claude: add MeloTTS Indian voice, onboarding personalization, class-based speed
Sumedh +1: Claude Sonnet 4.6- Replace Kokoro TTS with MeloTTS EN-INDIA voice (Indian English accent) - Add class_to_tts_speed() and class_to_num_q() helpers (Class 1-8) - Update _start_session_logic() to accept student_name and use it in greeting/LLM prompt - Update whatsapp_api_handler() to read student_name, tts_speed, story_index from state - Set session_complete flag when session ends so bridge can show post-session menu - Replace all kokoro_tts_to_wav() calls with melo_tts_to_wav(text, speed=tts_speed) - Update requirements.txt: remove kokoro>=0.9.4, add melo-tts - Add grammar correction mode idea to IDEAS.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>4821868
-
Adding Kokoro and fixing bug
Sumedh62f462a
-
Changed TTS to KOKORO
Sumedh388734a -
Claude Update: Remove show_error
Sumedhe3a35cc
-
update
Sumedhb0165e0
-
updating api
Sumedh68fddb7 -
clearing some errors
Sumedha60b892 -
gradio version
Sumedhd22c3fd -
Updating for Whatsapp Integration
Sumedhef8e325
-
Added Bathukamma story
Verified signature3c5d60e
-
Update app.py
Verified signatureee37097 -
hanging issue app update
Verified signature4a7c40d
-
fix for hagging issue
Verified signatureaad5368
-
adding new stories
Verified signature0150e39
-
Update app.py
Verified signaturebf5d55d -
loading voice early
Verified signature5e25b64 -
Update app.py
Verified signaturedf862c3 -
Update app.py
Verified signature0b2dfb5 -
Update app.py
Verified signature4408643 -
Update app.py
Verified signatured80e999 -
Question slider update
Verified signature6a48ceb
-
adding piper-tts
Peyyeti13a76b4
-
revert
Verified signature5d045f7 -
Update app.py
Verified signature3236635 -
Update for Edge-TTS neerja Voice
Verified signature8d98a6e
-
adding greeting logic
Verified signature057178f