Automatic Speech Recognition
NeMo
PyTorch
English
speech
audio
Transducer
TDT
FastConformer
Conformer
NeMo
hf-asr-leaderboard
Eval Results
nithinraok commited on
Commit
342b9e1
1 Parent(s): 075c081

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +318 -3
README.md CHANGED
@@ -1,3 +1,318 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: nemo
5
+ datasets:
6
+ - librispeech_asr
7
+ - fisher_corpus
8
+ - mozilla-foundation/common_voice_8_0
9
+ - National-Singapore-Corpus-Part-1
10
+ - vctk
11
+ - voxpopuli
12
+ - europarl
13
+ - multilingual_librispeech
14
+
15
+ thumbnail: null
16
+ tags:
17
+ - automatic-speech-recognition
18
+ - speech
19
+ - audio
20
+ - Transducer
21
+ - TDT
22
+ - FastConformer
23
+ - Conformer
24
+ - pytorch
25
+ - NeMo
26
+ - hf-asr-leaderboard
27
+ license: cc-by-4.0
28
+ widget:
29
+ - example_title: Librispeech sample 1
30
+ src: https://cdn-media.huggingface.co/speech_samples/sample1.flac
31
+ - example_title: Librispeech sample 2
32
+ src: https://cdn-media.huggingface.co/speech_samples/sample2.flac
33
+ model-index:
34
+ - name: parakeet_tdt_1.1b
35
+ results:
36
+ - task:
37
+ name: Automatic Speech Recognition
38
+ type: automatic-speech-recognition
39
+ dataset:
40
+ name: AMI (Meetings test)
41
+ type: edinburghcstr/ami
42
+ config: ihm
43
+ split: test
44
+ args:
45
+ language: en
46
+ metrics:
47
+ - name: Test WER
48
+ type: wer
49
+ value: 15.94
50
+ - task:
51
+ name: Automatic Speech Recognition
52
+ type: automatic-speech-recognition
53
+ dataset:
54
+ name: Earnings-22
55
+ type: revdotcom/earnings22
56
+ split: test
57
+ args:
58
+ language: en
59
+ metrics:
60
+ - name: Test WER
61
+ type: wer
62
+ value: 11.86
63
+ - task:
64
+ name: Automatic Speech Recognition
65
+ type: automatic-speech-recognition
66
+ dataset:
67
+ name: GigaSpeech
68
+ type: speechcolab/gigaspeech
69
+ split: test
70
+ args:
71
+ language: en
72
+ metrics:
73
+ - name: Test WER
74
+ type: wer
75
+ value: 10.19
76
+ - task:
77
+ name: Automatic Speech Recognition
78
+ type: automatic-speech-recognition
79
+ dataset:
80
+ name: LibriSpeech (clean)
81
+ type: librispeech_asr
82
+ config: other
83
+ split: test
84
+ args:
85
+ language: en
86
+ metrics:
87
+ - name: Test WER
88
+ type: wer
89
+ value: 1.82
90
+ - task:
91
+ name: Automatic Speech Recognition
92
+ type: automatic-speech-recognition
93
+ dataset:
94
+ name: LibriSpeech (other)
95
+ type: librispeech_asr
96
+ config: other
97
+ split: test
98
+ args:
99
+ language: en
100
+ metrics:
101
+ - name: Test WER
102
+ type: wer
103
+ value: 3.67
104
+ - task:
105
+ type: Automatic Speech Recognition
106
+ name: automatic-speech-recognition
107
+ dataset:
108
+ name: SPGI Speech
109
+ type: kensho/spgispeech
110
+ config: test
111
+ split: test
112
+ args:
113
+ language: en
114
+ metrics:
115
+ - name: Test WER
116
+ type: wer
117
+ value: 2.24
118
+ - task:
119
+ type: Automatic Speech Recognition
120
+ name: automatic-speech-recognition
121
+ dataset:
122
+ name: tedlium-v3
123
+ type: LIUM/tedlium
124
+ config: release1
125
+ split: test
126
+ args:
127
+ language: en
128
+ metrics:
129
+ - name: Test WER
130
+ type: wer
131
+ value: 3.87
132
+ - task:
133
+ name: Automatic Speech Recognition
134
+ type: automatic-speech-recognition
135
+ dataset:
136
+ name: Vox Populi
137
+ type: facebook/voxpopuli
138
+ config: en
139
+ split: test
140
+ args:
141
+ language: en
142
+ metrics:
143
+ - name: Test WER
144
+ type: wer
145
+ value: 6.19
146
+ - task:
147
+ type: Automatic Speech Recognition
148
+ name: automatic-speech-recognition
149
+ dataset:
150
+ name: Mozilla Common Voice 9.0
151
+ type: mozilla-foundation/common_voice_9_0
152
+ config: en
153
+ split: test
154
+ args:
155
+ language: en
156
+ metrics:
157
+ - name: Test WER
158
+ type: wer
159
+ value: 8.69
160
+
161
+ metrics:
162
+ - wer
163
+ pipeline_tag: automatic-speech-recognition
164
+ ---
165
+
166
+ # Parakeet HYBRID PnC 1.1B (en)
167
+
168
+ <style>
169
+ img {
170
+ display: inline;
171
+ }
172
+ </style>
173
+
174
+ [![Model architecture](https://img.shields.io/badge/Model_Arch-FastConformer--TDT-lightgrey#model-badge)](#model-architecture)
175
+ | [![Model size](https://img.shields.io/badge/Params-1.1B-lightgrey#model-badge)](#model-architecture)
176
+ | [![Language](https://img.shields.io/badge/Language-en-lightgrey#model-badge)](#datasets)
177
+
178
+
179
+ `parakeet-hyb-pnc-1.1b` is an ASR model that transcribes speech with Punctuations and Capitalizations of English alphabet. This model is jointly developed by [NVIDIA NeMo](https://github.com/NVIDIA/NeMo) and [Suno.ai](https://www.suno.ai/) teams.
180
+ It is an XXL version of Hybrid FastConformer [1] TDT-CTC [2] (around 1.1B parameters) model.
181
+ See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#fast-conformer) for complete architecture details.
182
+
183
+ ## NVIDIA NeMo: Training
184
+
185
+ To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest PyTorch version.
186
+ ```
187
+ pip install nemo_toolkit['all']
188
+ ```
189
+
190
+ ## How to Use this Model
191
+
192
+ The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
193
+
194
+ ### Automatically instantiate the model
195
+
196
+ ```python
197
+ import nemo.collections.asr as nemo_asr
198
+ asr_model = nemo_asr.models.ASRModel.from_pretrained(model_name="nvidia/parakeet-hyb-pnc-1.1b")
199
+ ```
200
+
201
+ ### Transcribing using Python
202
+ First, let's get a sample
203
+ ```
204
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
205
+ ```
206
+ Then simply do:
207
+ ```
208
+ asr_model.transcribe(['2086-149220-0033.wav'])
209
+ ```
210
+
211
+ ### Transcribing many audio files
212
+
213
+ By default model uses TDT to transcribe the audio files, to switch decoder to use CTC, use decoding_type='ctc'
214
+
215
+ ```shell
216
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
217
+ pretrained_name="nvidia/parakeet-hyb-pnc-1.1b"
218
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
219
+ ```
220
+
221
+ ### Input
222
+
223
+ This model accepts 16000 Hz mono-channel audio (wav files) as input.
224
+
225
+ ### Output
226
+
227
+ This model provides transcribed speech as a string for a given audio sample.
228
+
229
+ ## Model Architecture
230
+
231
+ This model uses a Hybrid FastConformer-TDT-CTC architecture. FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling. You may find more information on the details of FastConformer here: [Fast-Conformer Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#fast-conformer).
232
+
233
+
234
+ ## Training
235
+
236
+ The NeMo toolkit [3] was used for finetuning this model for 20,000 steps over `parakeet-tdt-1.1` model. This model is trained with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_transducer/speech_to_text_hybrid_rnnt_ctc_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/fastconformer/fastconformer_hybrid_transducer_ctc_bpe.yaml).
237
+
238
+ The tokenizers for these models were built using the text transcripts of the train set with this [script](https://github.com/NVIDIA/NeMo/blob/main/scripts/tokenizers/process_asr_text_tokenizer.py).
239
+
240
+ ### Datasets
241
+
242
+ The model was trained on 36K hours of English speech collected and prepared by NVIDIA NeMo and Suno teams.
243
+
244
+ The training dataset consists of private subset with 27K hours of English speech plus 9k hours from the following public PnC datasets:
245
+
246
+ - Librispeech 960 hours of English speech
247
+ - Fisher Corpus
248
+ - National Speech Corpus Part 1
249
+ - VCTK
250
+ - VoxPopuli (EN)
251
+ - Europarl-ASR (EN)
252
+ - Multilingual Librispeech (MLS EN) - 2,000 hour subset
253
+ - Mozilla Common Voice (v7.0)
254
+
255
+ ## Performance
256
+
257
+ The performance of Automatic Speech Recognition models is measuring using Word Error Rate. Since this dataset is trained on multiple domains and a much larger corpus, it will generally perform better at transcribing audio in general.
258
+
259
+ The following tables summarizes the performance of the available models in this collection with the Transducer decoder. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
260
+
261
+ |**Version**|**Tokenizer**|**Vocabulary Size**|**AMI**|**Earnings-22**|**Giga Speech**|**LS test-clean**|**SPGI Speech**|**TEDLIUM-v3**|**Vox Populi**|**Common Voice**|
262
+ |---------|-----------------------|-----------------|---------------|---------------|------------|-----------|-----|-------|------|------|
263
+ | 1.23.0 | SentencePiece Unigram | 1024 | 15.94 | 11.86 | 10.19 | 1.82 | 3.67 | 2.24 | 3.87 | 6.19 | 8.69 |
264
+
265
+ These are greedy WER numbers without external LM. More details on evaluation can be found at [HuggingFace ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)
266
+
267
+
268
+ ## Model Fairness Evaluation
269
+
270
+ As outlined in the paper "Towards Measuring Fairness in AI: the Casual Conversations Dataset", we assessed the parakeet-tdt-1.1b model for fairness. The model was evaluated on the CausalConversations-v1 dataset, and the results are reported as follows:
271
+
272
+ ### Gender Bias:
273
+
274
+ | Gender | Male | Female | N/A | Other |
275
+ | :--- | :--- | :--- | :--- | :--- |
276
+ | Num utterances | 19325 | 24532 | 926 | 33 |
277
+ | % WER | 12.81 | 10.49 | 13.88 | 23.12 |
278
+
279
+ ### Age Bias:
280
+
281
+ | Age Group | $(18-30)$ | $(31-45)$ | $(46-85)$ | $(1-100)$ |
282
+ | :--- | :--- | :--- | :--- | :--- |
283
+ | Num utterances | 15956 | 14585 | 13349 | 43890 |
284
+ | % WER | 11.50 | 11.63 | 11.38 | 11.51 |
285
+
286
+ (Error rates for fairness evaluation are determined by normalizing both the reference and predicted text, similar to the methods used in the evaluations found at https://github.com/huggingface/open_asr_leaderboard.)
287
+
288
+ ## NVIDIA Riva: Deployment
289
+
290
+ [NVIDIA Riva](https://developer.nvidia.com/riva), is an accelerated speech AI SDK deployable on-prem, in all clouds, multi-cloud, hybrid, on edge, and embedded.
291
+ Additionally, Riva provides:
292
+
293
+ * World-class out-of-the-box accuracy for the most common languages with model checkpoints trained on proprietary data with hundreds of thousands of GPU-compute hours
294
+ * Best in class accuracy with run-time word boosting (e.g., brand and product names) and customization of acoustic model, language model, and inverse text normalization
295
+ * Streaming speech recognition, Kubernetes compatible scaling, and enterprise-grade support
296
+
297
+ Although this model isn’t supported yet by Riva, the [list of supported models is here](https://huggingface.co/models?other=Riva).
298
+ Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
299
+
300
+ ## References
301
+ [1] [Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition](https://arxiv.org/abs/2305.05084)
302
+
303
+ [2] [Efficient Sequence Transduction by Jointly Predicting Tokens and Durations](https://arxiv.org/abs/2304.06795)
304
+
305
+ [3] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
306
+
307
+ [4] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
308
+
309
+ [5] [Suno.ai](https://suno.ai/)
310
+
311
+ [6] [HuggingFace ASR Leaderboard](https://huggingface.co/spaces/hf-audio/open_asr_leaderboard)
312
+
313
+ [7] [Towards Measuring Fairness in AI: the Casual Conversations Dataset](https://arxiv.org/abs/2104.02821)
314
+
315
+
316
+ ## Licence
317
+
318
+ License to use this model is covered by the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). By downloading the public and release version of the model, you accept the terms and conditions of the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) license.