programindz/kashmiri-streaming-speech-recognition
2
1---2title: Kashmiri Streaming ASR Zipformer3emoji: ๐ป4colorFrom: purple5colorTo: gray6sdk: docker7pinned: false8short_description: 'Online Streaming ASR System for Kashmiri Language'9license: apache-2.010---11 12# ๐๏ธ Real-Time Kashmiri Streaming ASR (FastAPI + Sherpa-ONNX)13 14This project demonstrates a real-time speech-to-text (ASR) web application with:15* ๐๏ธ Hugging Face Deployment taken from [Luigi](https://huggingface.co/spaces/Luigi/Streaming-Zipformer)16* ๐ง [Sherpa-ONNX](https://github.com/k2-fsa/sherpa-onnx) streaming Zipformer model17* ๐ FastAPI backend with WebSocket support18* โ๏ธ Docker-compatible deployment (CPU-only) on Hugging Face Spaces19 20 21## ๐ค Training22* Model: [Zipformer Small](https://github.com/k2-fsa/icefall)23* Dataset: [IndicVoices](https://huggingface.co/datasets/ai4bharat/IndicVoices)24* WER: 36%25 26## ๐งช Local Development27 281. **Install dependencies**29 30```bash31pip install -r requirements.txt32```33 342. **Run the app locally**35 36```bash37uvicorn app.main:app --reload --host 0.0.0.0 --port 850138```39 40Open [http://localhost:8501](http://localhost:8501) in your browser.41 42[https://k2-fsa.github.io/sherpa/ncnn/endpoint.html](https://k2-fsa.github.io/sherpa/ncnn/endpoint.html)43 44## ๐ Project Structure45 46```47.48โโโ app49โ โโโ main.py50โ โโโ asr.py51โ โโโ model parts52 โโโ All Model parts here (encoder, decoder, joiner, tokens)53 โโโ index.html54โโโ requirements.txt55โโโ Dockerfile56โโโ README.md57```58 59## ๐ง Credits60 61* [Sherpa-ONNX](https://github.com/k2-fsa/sherpa-onnx)62* [OpenCC](https://github.com/BYVoid/OpenCC)63* [FastAPI](https://fastapi.tiangolo.com/)64* [Hugging Face Spaces](https://huggingface.co/docs/hub/spaces)65* [AI4Bharat](https://ai4bharat.iitm.ac.in/)66* [Icefall-K2](https://github.com/k2-fsa/icefall)67 68 69Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference