MeetJariwala100 commited on
Commit
a9d2058
·
verified ·
1 Parent(s): 03c8e4e

Model card: shorter title, one-line note, English benchmarks, wider framing

Browse files
Files changed (1) hide show
  1. README.md +85 -45
README.md CHANGED
@@ -19,14 +19,15 @@ tags:
19
  - hinglish
20
  - code-switching
21
  - code-mixing
 
22
  - hindi
 
23
  - indian-english
24
  - telephony
25
  - 8khz
26
  - voice-agents
27
  - conversational-ai
28
  - contact-center
29
- - bfsi
30
  - speech
31
  - audio
32
  metrics:
@@ -38,7 +39,7 @@ metrics:
38
 
39
  ![ZRT ASR, a speech-to-text model by Zero Runtime. The sentence मेरी loan की EMI pay करनी है (I need to pay my loan EMI) is written with the Hindi words in Devanagari and the English words in Latin.](00-hero.png)
40
 
41
- <p><b>Streaming speech-to-text for Hindi, English and Hinglish.</b> Built for voice agents on Indian phone calls, it follows callers between Hindi and English and writes every word in the script it was spoken in.</p>
42
 
43
  <p>
44
  <a href="https://zeroruntime.ai/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface"><img src="https://img.shields.io/badge/Get%20Access-zeroruntime.ai-2563EB?style=for-the-badge" alt="Get Access"></a>
@@ -48,19 +49,26 @@ metrics:
48
 
49
  </div>
50
 
51
- A caller rarely speaks one language. "मेरी loan की EMI pay करनी है" (I need to pay my loan EMI) switches language four
52
- times in seven words, and arrives over an 8 kHz phone line. Most speech models either miss the switch or write the
53
- English words in Devanagari, and the software after them can no longer find "loan" or "EMI".
 
54
 
55
- ZRT ASR is one streaming model for that speech. It sends partial transcripts while the caller is still talking and a
56
- final transcript when they stop, and it decides the script word by word: Hindi in Devanagari, English in Latin. On 28
57
- held-out test sets (120.7 hours) it scores **13.8 % word error rate**, it scores **12.9 % on the Vaani Hindi
58
- benchmark under the benchmark's own toolkit**, ahead of all 11 entries on its leaderboard (the setting is described
59
- under Evaluation), and its model latency is **63.4 ms** from the end of speech to the final transcript.
 
 
 
 
 
 
 
60
 
61
  > [!NOTE]
62
- > In the API, ZRT ASR is the `ZRTSTT` class. This repository holds the model card and evaluation results; the model is
63
- > served by Zero Runtime and its weights are not distributed.
64
 
65
  ---
66
 
@@ -72,13 +80,13 @@ under Evaluation), and its model latency is **63.4 ms** from the end of speech t
72
  | **Languages** | Hindi (`hi`), English (`en`), and Hindi-English code-switching (Hinglish) in the same utterance |
73
  | **Language setting** | `auto` (default: Hindi, English and Hinglish), `hi-IN` (Hindi), `en-US` (English) |
74
  | **Output script** | Each word in the script of the language it was spoken in: Hindi in Devanagari, English in Latin |
75
- | **Writing standard** | English in lower case, short forms in capitals (EMI, OTP, NACH), numbers as words in the language spoken |
76
- | **Streaming** | Partial transcripts while the caller speaks, and a final transcript at the end of each utterance |
77
  | **Audio** | Built and tested on real 8 kHz phone calls as well as wideband recordings |
78
  | **Model latency** | 63.4 ms mean Time to Final Transcript, measured on our server ([details](#model-latency)) |
79
  | **Custom vocabulary** | `keywords` per session, as a list or as a map with a boost per term; `keyword_boost` 0.25 to 1.0, default 0.5 |
80
  | **Turn handling** | `endpointing` tuning, `force_eou_on_flush`, `enable_preemptive_generation` |
81
- | **Accuracy** | 13.8 % WER on 28 held-out test sets, 120.7 hours, our scorer ([details](#evaluation)) |
82
  | **Access** | Zero Runtime managed inference, through `zeroruntime.inference.ZRTSTT`. Weights are not distributed |
83
 
84
  ---
@@ -93,11 +101,11 @@ from zeroruntime.inference import ZRTSTT
93
  stt = ZRTSTT(
94
  language="auto", # Hindi, English and Hinglish; or "hi-IN", "en-US"
95
  interim_results=True, # partial transcripts while the caller speaks
96
- keywords=[ # scheme and product terms your callers say
97
- "pmjjby",
98
- "nach mandate",
99
- "सुकन्या समृद्धि",
100
- "जीवन ज्योति बीमा",
101
  ],
102
  keyword_boost=0.5, # start here and keep it low
103
  )
@@ -117,18 +125,19 @@ Every field is described in the [ZRTSTT reference](https://docs.zeroruntime.ai/a
117
 
118
  ---
119
 
120
- ## What makes an Indian call hard
121
 
122
  ### The switch itself
123
 
124
- In Hinglish the language can change at any word, often several times in one sentence. At every switch the model has
125
- to notice the new language and write the next word in its script, while the audio is still arriving.
 
126
 
127
  ![The sentence मेरी loan की EMI pay करनी है as seven word tiles, four in Hindi and three in English, with a dashed line at each of the four switches.](01-switch-points.png)
128
 
129
  ### English in the wrong script
130
 
131
- Many Indian speech transcripts write English words in Devanagari: लोन for loan, ईएमआई for EMI. Read aloud, nothing
132
  changes; on the page, the English word is gone, and a model trained on such text writes English the same way. ZRT ASR
133
  decides the script word by word, so loan stays loan.
134
 
@@ -145,18 +154,19 @@ decides the script word by word, so loan stays loan.
145
 
146
  ### Short answers
147
 
148
- Many caller turns on a voice-agent call are one or two words, and those are the turns the agent acts on: a हां (yes)
149
- confirms a payment date, a नहीं (no) stops a renewal. A reply that short gives the model very little sound to work with.
 
150
 
151
  ### Numbers, OTPs and amounts
152
 
153
- Banking, lending and insurance calls run on numbers. Callers say them in Hindi or English, digit by digit or in groups,
154
- and amounts in lakh and thousand. One wrong word and an OTP check fails or a wrong amount is booked.
155
 
156
- ### Product and scheme names
157
 
158
- A new loan plan, a government scheme or a short form such as NACH may be a term the model has rarely heard. The
159
- `keywords` field lets each session name the terms its callers use.
160
 
161
  ---
162
 
@@ -169,7 +179,7 @@ keyword search, analytics) always see the same format.
169
  |:--|:--|:--|
170
  | Hindi words | Devanagari | मेरी, करनी है |
171
  | English words | Latin, lower case | loan, pay, call |
172
- | Short forms said as letters | Latin capitals | EMI, OTP, NACH |
173
  | Numbers, amounts, times | Words, in the language they were spoken in | पंद्रह लाख पच्चीस हजार रुपये, nine five two one |
174
 
175
  ```text
@@ -192,8 +202,10 @@ its own final step.
192
  ### How we measure
193
 
194
  - **Test split.** 28 held-out test sets, 57,681 clips, 120.7 hours of Hindi, English and Hinglish: read and
195
- spontaneous speech, wideband and 8 kHz telephony, adults and children, speakers from across India. Every
196
- result below is on audio ZRT ASR never heard while it was being built.
 
 
197
  - **Metric.** Word error rate, WER = (substitutions + deletions + insertions) / reference words, pooled over each group
198
  of clips. An empty output counts as every reference word deleted.
199
  - **Scoring.** One scorer runs on both sides of every comparison. Before alignment it applies Unicode NFC, lower case,
@@ -202,8 +214,12 @@ its own final step.
202
  - **References.** In our copies of the test sets, English words that the original transcripts wrote in Devanagari are
203
  rewritten in Latin, the way ZRT ASR writes them, numbers are written as words, and reference typos are fixed.
204
 
205
- Official scorers were built to score Hindi written in one script, and they count a correctly heard English word written
206
- in Latin as an error. That is why a benchmark publisher's scorer reports a higher WER for the same transcript:
 
 
 
 
207
 
208
  | The reference says | ZRT ASR writes | A strict scorer | Our scorer |
209
  |:--|:--|:--|:--|
@@ -230,6 +246,8 @@ ARTPARK-IISc's [SraVaani model card](https://huggingface.co/ARTPARK-IISc/SraVaan
230
  its own model: writing English in Latin, scored against a single-script reference, can raise WER without a real
231
  recognition error.
232
 
 
 
233
  ### Headline results
234
 
235
  Measured on the 28-set test split, at the setting that serves live calls, our scorer:
@@ -243,6 +261,27 @@ Measured on the 28-set test split, at the setting that serves live calls, our sc
243
  | Words in clips with short forms such as EMI | 14.1 |
244
  | Spoken numbers with any word wrong (21,072 numbers) | 7.0 |
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  ### Code-switching
247
 
248
  WER by the share of English words in a clip:
@@ -424,9 +463,10 @@ labels age in its own bands, so its groups are listed apart.
424
 
425
  ![WER for each group of speakers, with the dashed line at the test-split average.](11-speakers.png)
426
 
427
- ### States and union territories
428
 
429
- All 27 states and union territories with at least 50 clips in the test split score between 7.1 % and 15.4 %.
 
430
 
431
  <details>
432
  <summary><b>WER by state and union territory</b></summary>
@@ -448,10 +488,10 @@ All 27 states and union territories with at least 50 clips in the test split sco
448
  | Nagaland | 10.3 | Chhattisgarh | 15.4 |
449
  | Bihar | 11.2 | | |
450
 
451
- </details>
452
-
453
  ![WER for each state and union territory with at least 50 clips, with the dashed line at the test-split average.](12-states.png)
454
 
 
 
455
  ### Phone calls and conversations
456
 
457
  Kinds of real call and conversation audio where ZRT ASR does best, described rather than named:
@@ -525,11 +565,11 @@ scale, not as a ranking. Each provider appears once, with its fastest entry on t
525
 
526
  ## Intended use
527
 
528
- - **Built for:** real-time transcription in voice agents, contact centres and call analytics, for Hindi, English and
529
- Hinglish callers, on phone lines and app audio. Banking, lending and insurance calls, where amounts, codes and scheme
530
- names matter, are a primary use.
531
- - **Out of scope:** other Indian languages (the model writes Hindi and English only), speaker diarization, and
532
- formatted output such as digits for numbers, which downstream steps handle.
533
  - **Responsible use:** call audio and transcripts carry personal data. Record with consent, and redact or mask personal
534
  information before transcripts are stored.
535
 
 
19
  - hinglish
20
  - code-switching
21
  - code-mixing
22
+ - english
23
  - hindi
24
+ - multilingual
25
  - indian-english
26
  - telephony
27
  - 8khz
28
  - voice-agents
29
  - conversational-ai
30
  - contact-center
 
31
  - speech
32
  - audio
33
  metrics:
 
39
 
40
  ![ZRT ASR, a speech-to-text model by Zero Runtime. The sentence मेरी loan की EMI pay करनी है (I need to pay my loan EMI) is written with the Hindi words in Devanagari and the English words in Latin.](00-hero.png)
41
 
42
+ <p><b>Streaming speech-to-text for Hindi, English and Hinglish.</b></p>
43
 
44
  <p>
45
  <a href="https://zeroruntime.ai/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface"><img src="https://img.shields.io/badge/Get%20Access-zeroruntime.ai-2563EB?style=for-the-badge" alt="Get Access"></a>
 
49
 
50
  </div>
51
 
52
+ Callers do not always keep to one language. "मेरी loan की EMI pay करनी है" (I need to pay my loan EMI) switches between
53
+ Hindi and English four times in seven words, and often arrives over an 8 kHz phone line. Most speech models either
54
+ miss the switch or write the English words in Devanagari, and the software after them can no longer find "loan" or
55
+ "EMI".
56
 
57
+ ZRT ASR is one streaming model for English, Hindi and the mix of the two. It sends partial transcripts while the
58
+ speaker is still talking and a final transcript when they stop, and it writes each word in its own script: English in
59
+ Latin, Hindi in Devanagari.
60
+
61
+ - **English:** **10.04 %** average word error rate on the seven public English benchmarks of the Hugging Face Open
62
+ ASR Leaderboard under the leaderboard's own scorer, and **9.29 %** with beam search.
63
+ - **Hindi:** **12.9 %** on the Vaani Hindi benchmark under the benchmark's own toolkit, ahead of all 11 entries on
64
+ its leaderboard.
65
+ - **Hindi, English and Hinglish together:** **13.8 %** on 28 held-out test sets (120.7 hours).
66
+ - **Speed:** **63.4 ms** model latency from the end of speech to the final transcript.
67
+
68
+ The setting behind each number is described under [Evaluation](#evaluation).
69
 
70
  > [!NOTE]
71
+ > The model is served by Zero Runtime and its weights are not distributed.
 
72
 
73
  ---
74
 
 
80
  | **Languages** | Hindi (`hi`), English (`en`), and Hindi-English code-switching (Hinglish) in the same utterance |
81
  | **Language setting** | `auto` (default: Hindi, English and Hinglish), `hi-IN` (Hindi), `en-US` (English) |
82
  | **Output script** | Each word in the script of the language it was spoken in: Hindi in Devanagari, English in Latin |
83
+ | **Writing standard** | English in lower case, short forms in capitals (OTP, EMI), numbers as words in the language spoken |
84
+ | **Streaming** | Partial transcripts while the speaker talks, and a final transcript at the end of each utterance |
85
  | **Audio** | Built and tested on real 8 kHz phone calls as well as wideband recordings |
86
  | **Model latency** | 63.4 ms mean Time to Final Transcript, measured on our server ([details](#model-latency)) |
87
  | **Custom vocabulary** | `keywords` per session, as a list or as a map with a boost per term; `keyword_boost` 0.25 to 1.0, default 0.5 |
88
  | **Turn handling** | `endpointing` tuning, `force_eou_on_flush`, `enable_preemptive_generation` |
89
+ | **Accuracy** | English: 10.04 % average WER on the Open ASR Leaderboard's seven public English sets, its own scorer. Hindi, English and Hinglish: 13.8 % WER on 28 held-out test sets, 120.7 hours, our scorer ([details](#evaluation)) |
90
  | **Access** | Zero Runtime managed inference, through `zeroruntime.inference.ZRTSTT`. Weights are not distributed |
91
 
92
  ---
 
101
  stt = ZRTSTT(
102
  language="auto", # Hindi, English and Hinglish; or "hi-IN", "en-US"
103
  interim_results=True, # partial transcripts while the caller speaks
104
+ keywords=[ # product and brand names your callers say
105
+ "zero runtime",
106
+ "auto debit",
107
+ "refund status",
108
+ "किस्त",
109
  ],
110
  keyword_boost=0.5, # start here and keep it low
111
  )
 
125
 
126
  ---
127
 
128
+ ## What makes live calls hard
129
 
130
  ### The switch itself
131
 
132
+ When a speaker mixes two languages, as Hinglish speakers mix Hindi and English, the language can change at any word,
133
+ often several times in one sentence. At every switch the model has to notice the new language and write the next word
134
+ in its script, while the audio is still arriving.
135
 
136
  ![The sentence मेरी loan की EMI pay करनी है as seven word tiles, four in Hindi and three in English, with a dashed line at each of the four switches.](01-switch-points.png)
137
 
138
  ### English in the wrong script
139
 
140
+ Many Hindi speech datasets write English words in Devanagari: लोन for loan, ईएमआई for EMI. Read aloud, nothing
141
  changes; on the page, the English word is gone, and a model trained on such text writes English the same way. ZRT ASR
142
  decides the script word by word, so loan stays loan.
143
 
 
154
 
155
  ### Short answers
156
 
157
+ Many caller turns on a voice-agent call are one or two words, and those are the turns the agent acts on: a "yes" or
158
+ हां confirms a payment date, a "no" or नहीं stops a renewal. A reply that short gives the model very little sound to
159
+ work with.
160
 
161
  ### Numbers, OTPs and amounts
162
 
163
+ Payment, banking and support calls run on numbers: account numbers, OTPs, dates and amounts. Callers say them digit
164
+ by digit or in groups, in English or in Hindi. One wrong word and an OTP check fails or a wrong amount is booked.
165
 
166
+ ### Product and brand names
167
 
168
+ A new product, a brand name or a short form may be a term the model has rarely heard. The `keywords` field lets each
169
+ session name the terms its callers use.
170
 
171
  ---
172
 
 
179
  |:--|:--|:--|
180
  | Hindi words | Devanagari | मेरी, करनी है |
181
  | English words | Latin, lower case | loan, pay, call |
182
+ | Short forms said as letters | Latin capitals | EMI, OTP |
183
  | Numbers, amounts, times | Words, in the language they were spoken in | पंद्रह लाख पच्चीस हजार रुपये, nine five two one |
184
 
185
  ```text
 
202
  ### How we measure
203
 
204
  - **Test split.** 28 held-out test sets, 57,681 clips, 120.7 hours of Hindi, English and Hinglish: read and
205
+ spontaneous speech, wideband and 8 kHz telephony, adults and children, speakers from across India and English
206
+ speakers with other accents. Every result below is on audio ZRT ASR never heard while it was being built.
207
+ - **English benchmarks.** The seven English sets of the Open ASR Leaderboard are scored with the leaderboard's own code
208
+ and scorer, unchanged.
209
  - **Metric.** Word error rate, WER = (substitutions + deletions + insertions) / reference words, pooled over each group
210
  of clips. An empty output counts as every reference word deleted.
211
  - **Scoring.** One scorer runs on both sides of every comparison. Before alignment it applies Unicode NFC, lower case,
 
214
  - **References.** In our copies of the test sets, English words that the original transcripts wrote in Devanagari are
215
  rewritten in Latin, the way ZRT ASR writes them, numbers are written as words, and reference typos are fixed.
216
 
217
+ Official Hindi scorers were built to score Hindi written in one script, and they count a correctly heard English word
218
+ written in Latin as an error. That is why a Hindi benchmark publisher's scorer reports a higher WER for the same
219
+ transcript.
220
+
221
+ <details>
222
+ <summary><b>How a Hindi publisher's scorer and ours differ, on six public benchmarks</b></summary>
223
 
224
  | The reference says | ZRT ASR writes | A strict scorer | Our scorer |
225
  |:--|:--|:--|:--|
 
246
  its own model: writing English in Latin, scored against a single-script reference, can raise WER without a real
247
  recognition error.
248
 
249
+ </details>
250
+
251
  ### Headline results
252
 
253
  Measured on the 28-set test split, at the setting that serves live calls, our scorer:
 
261
  | Words in clips with short forms such as EMI | 14.1 |
262
  | Spoken numbers with any word wrong (21,072 numbers) | 7.0 |
263
 
264
+ ### English benchmarks
265
+
266
+ The [Hugging Face Open ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard) ranks English
267
+ speech models on seven public test sets and two private ones. We ran ZRT ASR on all seven public sets, with the
268
+ language set to `en-US` at its most accurate streaming setting, and scored the transcripts with the leaderboard's own
269
+ code, unchanged. ZRT ASR is not listed on the leaderboard; these are our own runs.
270
+
271
+ | Benchmark | What it is | Clips | WER % | WER % with beam search |
272
+ |:--|:--|--:|--:|--:|
273
+ | **AMI-Cleaned** | Meetings, recorded in meeting rooms | 7,715 | 14.84 | 13.19 |
274
+ | **Earnings22-Cleaned-AA-chunked** | Company earnings calls, speakers from around the world | 341 | 13.48 | 12.27 |
275
+ | **GigaSpeech-Cleaned** | Podcasts, audiobooks and online videos | 18,757 | 9.86 | 9.32 |
276
+ | **SPGISpeech** | Financial earnings calls | 39,341 | 3.29 | 3.19 |
277
+ | **URGENT2024** | Speech in noise, echo and distortion | 1,000 | 18.32 | 17.53 |
278
+ | **Voice Arena Monsoon (en-IN)** | English from speakers across India | 2,102 | 6.41 | 5.77 |
279
+ | **VoxPopuli-AA-Cleaned** | European Parliament speeches | 628 | 4.08 | 3.74 |
280
+ | **Average of the seven** | | 69,884 | **10.04** | **9.29** |
281
+
282
+ The leaderboard lists a model on its English track only if its average on these seven public sets is under 10 %. With
283
+ beam search ZRT ASR averages **9.29 %**. At the setting that serves live calls the average is 10.91 %.
284
+
285
  ### Code-switching
286
 
287
  WER by the share of English words in a clip:
 
463
 
464
  ![WER for each group of speakers, with the dashed line at the test-split average.](11-speakers.png)
465
 
466
+ ### Regions of India
467
 
468
+ All 27 Indian states and union territories with at least 50 clips in the test split score between 7.1 % and
469
+ 15.4 %.
470
 
471
  <details>
472
  <summary><b>WER by state and union territory</b></summary>
 
488
  | Nagaland | 10.3 | Chhattisgarh | 15.4 |
489
  | Bihar | 11.2 | | |
490
 
 
 
491
  ![WER for each state and union territory with at least 50 clips, with the dashed line at the test-split average.](12-states.png)
492
 
493
+ </details>
494
+
495
  ### Phone calls and conversations
496
 
497
  Kinds of real call and conversation audio where ZRT ASR does best, described rather than named:
 
565
 
566
  ## Intended use
567
 
568
+ - **Built for:** real-time transcription in voice agents, contact centres and call analytics, for callers who speak
569
+ English, Hindi or both, on phone lines and app audio. Calls where amounts, codes and product names matter, such as
570
+ payments, banking and insurance, are a primary use.
571
+ - **Out of scope:** other languages (the model writes English and Hindi only), speaker diarization, and formatted
572
+ output such as digits for numbers, which downstream steps handle.
573
  - **Responsible use:** call audio and transcripts carry personal data. Record with consent, and redact or mask personal
574
  information before transcripts are stored.
575