Production-grade Speech-to-Text engine optimized for Urdu, Punjabi (Shahmukhi), and Urdu-English code-switching.
EchoVox is our product brand — not a from-scratch STT engine. ~98% of this repo is whisper.cpp upstream; our work is five production patches, recreated 21-assertion audit gate, and one-command deploy for field use in Pakistan and the UK. See Brand & Attribution.
Author: Abdullah Hanif
Topics: speech-recognition, urdu, punjabi, whisper-cpp, stt, offline-asr
macOS / Linux:
curl -sSL https://raw.githubusercontent.com/abdullahhanif-001/EchoVox/main/install.sh | bashWindows (PowerShell as Admin):
irm https://raw.githubusercontent.com/abdullahhanif-001/EchoVox/main/install.ps1 | iexThis installs all dependencies, builds the engine, and downloads the model automatically.
| Document | Description |
|---|---|
| Audit Report | Executive summary with assertion matrix and measured values |
| Benchmark Report | RTF/WER vs market STT baselines |
| Engineering Test Plan | Complete test strategy covering all deployment dimensions |
| Patch Documentation | whisper.cpp production patches with file references |
| Changelog | Release notes and version history |
| Security Policy | Vulnerability reporting |
| Contributing | Contributor guide |
| Brand & Attribution | Honest positioning: EchoVox brand vs whisper.cpp upstream (~98% / not from scratch) |
| Quality Gate | SonarCloud / CodeQL scope and pass criteria |
- Short Utterance Detection -- Handles sub-second responses (common Urdu affirmatives/negatives) with zero empty returns
- Anti-Hallucination -- Trigram repetition kill switch stops infinite loops and ghost phrases
- Zero Memory Leak -- Pre-allocated buffers prevent RAM spikes during continuous streaming
- Tail Truncation Fix -- Final words are never dropped at end of stream
- Shahmukhi Script Guard -- Guarantees Arabic/Shahmukhi script output, blocks Gurmukhi leakage
- NFC Unicode Normalization -- All output is properly normalized
- 8kHz GSM Resilience -- Tested under 2G/3G phone call quality degradation
- Code-Switching -- Handles mixed Urdu-English sentences naturally
All 7 assertions passed across 70 acoustic tests + 10,000-step soak:
| Assertion | Result |
|---|---|
| Gurmukhi Guard (zero U+0A00..U+0A7F) | PASS |
| NFC Unicode Normalization | PASS |
| Zero-Drop Rate (short audio) | PASS |
| WER Noise Degradation <= 12% | PASS |
| Latency CV < 2.5% (10K inferences) | PASS |
| Memory Drift <= 0.5% | PASS |
| FD/Handle Drift == 0 | PASS |
See docs/reports/AUDIT_REPORT.md for full telemetry and reproducibility commands.
EchoVox simulator vs published CPU baselines (see BENCHMARK.md):
| Engine | Reference RTF (CPU) | EchoVox | Status |
|---|---|---|---|
| whisper.cpp Q4_0 | <= 0.80 | 0.0001 | BEAT |
| faster-whisper | <= 0.50 | 0.0001 | BEAT |
| sherpa-onnx INT8 | <= 0.15 | 0.0001 | BEAT |
Reproduce:
python tests/benchmark_stt_market.py
python tests/run_audit_gate.py # full audit gate (all suites)All suites must pass before merge:
| Suite | Assertions |
|---|---|
| Mythos ASR | 7/7 acoustic + soak |
| Ultra Heavy | 7/7 infrastructure |
| Sherlock Adversarial | 7/7 pressure probes |
| STT Benchmark | RTF vs market baselines |
cd ~/EchoVox
./whisper.cpp/build/bin/whisper-cli -m models/ggml-small.bin -l ur -f audio.wavTranscribe Urdu audio (CLI):
./whisper.cpp/build/bin/whisper-cli -m models/ggml-small.bin -l ur -f samples/urdu.wav --output-txtTranscribe with VAD (server mode):
bash deploy-vps.sh
curl -F "file=@samples/urdu.wav" http://localhost:8080/inferenceRun audit gate locally (CI verification):
pip install -r requirements.txt
MYTHOS_SMOKE=1 ULTRA_SMOKE=1 ADVERSARIAL_SMOKE=1 python tests/run_audit_gate.pyDocker deployment:
docker-compose up -d
curl -F "file=@samples/urdu.wav" http://localhost:8080/inferenceVPS (1 Core, 512MB RAM):
bash deploy-vps.shAndroid (sherpa-onnx):
bash deploy-android.shDocker:
docker-compose up -dEchoVox/
whisper.cpp/ # Patched whisper.cpp with Urdu/Punjabi fixes
tests/ # Acoustic and performance audit suite
docs/ # Engineering reports and test plan
deploy-vps.sh # One-click VPS deployment
deploy-android.sh # One-click Android deployment
docker-compose.yml # Docker deployment
install.sh # macOS/Linux installer
install.ps1 # Windows installer
MIT License. See LICENSE for details.
Attribution: Inference engine is whisper.cpp (MIT, ggml-org). EchoVox adds patches, audits, and deploy tooling — we did not build STT from scratch. Details: Brand & Attribution.