programindz/kashmiri-streaming-speech-recognition
2
๐๏ธ Real-Time Kashmiri Streaming ASR (FastAPI + Sherpa-ONNX)
This project demonstrates a real-time speech-to-text (ASR) web application with:
- ๐๏ธ Hugging Face Deployment taken from Luigi
- ๐ง Sherpa-ONNX streaming Zipformer model
- ๐ FastAPI backend with WebSocket support
- โ๏ธ Docker-compatible deployment (CPU-only) on Hugging Face Spaces
๐ค Training
- Model: Zipformer Small
- Dataset: IndicVoices
- WER: 36%
๐งช Local Development
- Install dependencies
pip install -r requirements.txt- Run the app locally
uvicorn app.main:app --reload --host 0.0.0.0 --port 8501Open http://localhost:8501 in your browser.
https://k2-fsa.github.io/sherpa/ncnn/endpoint.html
๐ Project Structure
.
โโโ app
โ โโโ main.py
โ โโโ asr.py
โ โโโ model parts
โโโ All Model parts here (encoder, decoder, joiner, tokens)
โโโ index.html
โโโ requirements.txt
โโโ Dockerfile
โโโ README.md๐ง Credits
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
