Spaces:
Sleeping

feat: real-time CPU pipeline, pre-ASR gates, and 20-clip benchmark

#2
by Captivater - opened

Summary

  • Pre-ASR Acoustic & Duration Gates (scqc/audio.py, scqc/thresholds.py): Prompt-driven akshara/syllable duration bounds, silence trimming, and calibrated VAD thresholds (< 3 ms pre-ASR rejection).
  • Real-Time CPU ASR (scqc/asr.py): CascadedASR early-exit routing and dynamic INT8 encoder quantization + greedy decoding (num_beams=1), reducing Mean CPU RTF from 1.08 to ~0.40.
  • Indic Lexical & Phonetic Alignment (scqc/textnorm.py, scqc/align.py, scqc/checks/tasks.py): Devanagari consonant-skeleton normalization (indic_asr_key) and split-syllable merging.
  • 20-Clip Benchmark Harness (eval_harness/): 20-scenario Hindi/English matrix (ground_truth.csv), benchmark runner (run_benchmark.py), clip recorder (record_clips.py), and Colab notebook.

Verification

  • pytest -q: 100/100 passed
  • HF_HUB_OFFLINE=1 python eval_harness/run_benchmark.py --asr hf:openai/whisper-small: 20/20 matched | Mean CPU RTF: ~0.40
Captivater changed pull request status to open
raianand changed pull request status to merged

Sign up or log in to comment