Titouan Parcollet/Embedded AI /SRUK/Engineer/Samsung Electronics commited on
Commit
3556016
·
1 Parent(s): 994e8f9

model card

Browse files
Files changed (1) hide show
  1. README.md +93 -0
README.md CHANGED
@@ -1,3 +1,96 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ thumbnail: null
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - CTC
8
+ - Attention
9
+ - Transformer
10
+ - Conformer
11
+ - pytorch
12
+ - speechbrain
13
+ - hf-asr-leaderboard
14
  license: apache-2.0
15
+ datasets:
16
+ - largescaleasr
17
+ metrics:
18
+ - wer
19
+ - cer
20
  ---
21
+
22
+ # Conformer for the 25,000 hours of the LargeScaleASR dataset
23
+
24
+ *This model is a contribution of the Samsung AI Center-Cambridge.*
25
+
26
+ This repository provides all the necessary tools to perform automatic speech
27
+ recognition from an end-to-end system pretrained on [LargeScaleASR](https://huggingface.co/datasets/speechbrain/LargeScaleASR) (EN) within
28
+ SpeechBrain. For a better experience, we encourage you to learn more about
29
+ [SpeechBrain](https://speechbrain.github.io).
30
+ The performance of the model is the following:
31
+
32
+ | #params | validation WER | test WER | GPUs |
33
+ |:-------------:|:-------------:| :-----:| :-----:|
34
+ | 480M | 6.8 | 7.5 | 8xA100 32GB |
35
+
36
+ If you want to train your own model on this dataset, please refer to the SpeechBrain toolkit.
37
+
38
+ ## Pipeline description
39
+
40
+ This ASR system is composed of 2 different but linked blocks:
41
+ - Tokenizer (unigram) that transforms words into subword units and trained with
42
+ the train transcriptions of the LargeScaleASR dataset.
43
+ - Acoustic model made of a conformer encoder and a joint decoder with CTC +
44
+ transformer. Hence, the decoding also incorporates the CTC probabilities.
45
+
46
+ The system is trained with recordings sampled at 16kHz (single channel).
47
+ The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
48
+
49
+ ## Install SpeechBrain
50
+
51
+ First of all, please install SpeechBrain with the following command:
52
+
53
+ ```
54
+ pip install speechbrain
55
+ ```
56
+
57
+ Please notice that we encourage you to read our tutorials and learn more about
58
+ [SpeechBrain](https://speechbrain.github.io).
59
+
60
+ ### Transcribing your own audio files (in English)
61
+
62
+ ```python
63
+ from speechbrain.inference.ASR import EncoderDecoderASR
64
+
65
+ asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-conformer-largescaleasr", savedir="pretrained_models/asr-conformer-largescaleasr")
66
+ asr_model.transcribe_file("speechbrain/asr-conformer-largescaleasr/example.wav")
67
+
68
+ ```
69
+ ### Inference on GPU
70
+ To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
71
+
72
+ ## Parallel Inference on a Batch
73
+ Please, [see this Colab notebook](https://colab.research.google.com/drive/1hX5ZI9S4jHIjahFCZnhwwQmFoGAi3tmu?usp=sharing) to figure out how to transcribe in parallel a batch of input sentences using a pre-trained model.
74
+
75
+ # **About SpeechBrain**
76
+ - Website: https://speechbrain.github.io/
77
+ - Code: https://github.com/speechbrain/speechbrain/
78
+ - HuggingFace: https://huggingface.co/speechbrain/
79
+
80
+
81
+ # **Citing SpeechBrain**
82
+ Please, cite SpeechBrain if you use it for your research or business.
83
+
84
+
85
+ ```bibtex
86
+ @article{speechbrainV1,
87
+ author = {Mirco Ravanelli and Titouan Parcollet and Adel Moumen and Sylvain de Langen and Cem Subakan and Peter Plantinga and Yingzhi Wang and Pooneh Mousavi and Luca Della Libera and Artem Ploujnikov and Francesco Paissan and Davide Borra and Salah Zaiem and Zeyu Zhao and Shucong Zhang and Georgios Karakasidis and Sung-Lin Yeh and Pierre Champion and Aku Rouhe and Rudolf Braun and Florian Mai and Juan Zuluaga-Gomez and Seyed Mahed Mousavi and Andreas Nautsch and Ha Nguyen and Xuechen Liu and Sangeet Sagar and Jarod Duret and Salima Mdhaffar and Ga{{\"e}}lle Laperri{{\`e}}re and Mickael Rouvier and Renato De Mori and Yannick Est{{\`e}}ve},
88
+ title = {Open-Source Conversational AI with SpeechBrain 1.0},
89
+ journal = {Journal of Machine Learning Research},
90
+ year = {2024},
91
+ volume = {25},
92
+ number = {333},
93
+ pages = {1--11},
94
+ url = {http://jmlr.org/papers/v25/24-0991.html}
95
+ }
96
+ ```