Spaces:
Running

File size: 1,417 Bytes
b6527e7
9b81ca9
 
 
 
b6527e7
 
9b81ca9
 
 
 
 
b6527e7
 
9b81ca9
 
 
 
 
 
 
 
 
 
 
41e0beb
9b81ca9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: Shenava Rizeh v1.5 Live
emoji: 🎙️
colorFrom: indigo
colorTo: blue
sdk: static
pinned: false
license: gpl-3.0
short_description: Live Persian speech recognition in the browser (WebGPU/WASM)
models:
- Reza2kn/Shenava-Rizeh-v1.5
- Reza2kn/Shenava-Rizeh-v1.5-sherpa-onnx
---

# شنوا ریزه ۱.۵ · live, in your browser

Streaming Persian ASR with **Shenava Rizeh v1.5** (60M-param Zipformer2 RNN-T, int4), running fully client-side with onnxruntime-web (WebGPU when available, WASM otherwise). Nothing is uploaded; the ~120 MB of models is cached after the first visit.

**Two passes:**

1. **Live:** a cache-aware streaming encoder processes 320 ms chunks with greedy RNN-T, so words appear about as fast as they are spoken (shown in blue).
2. **Correction:** when you pause, the phrase is re-decoded with the full-context encoder plus beam search, with in-beam shallow fusion of a word 3-gram LM (Persian Wikipedia / RaahNaameh text, 120k-word vocab, 24 MB). Changed words flash gold. During continuous speech, interim corrections run about once a second.

Files: `asr.js` (engine), `fbank.js` (exact kaldi-fbank port), `lm.js` (compact trigram), `worker.js`, `app.js`.

Held-out half of the PersianASR Triple-Threat benchmark (2,758 clips, official TT, lower is better), measured with this exact JS engine in Node: live greedy pass 5.66 · correction pass without LM 4.31 · **with LM 4.19**.