CoolFace
Apppublic

programindz/kashmiri-streaming-speech-recognition

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
2likes
App README

๐ŸŽ™๏ธ 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

๐Ÿงช Local Development

  1. 1.Install dependencies
bash
pip install -r requirements.txt
  1. 1.Run the app locally
bash
uvicorn app.main:app --reload --host 0.0.0.0 --port 8501

Open 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