ferugit commited on
Commit
c79ae5f
1 Parent(s): d427601

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - es
4
+ thumbnail: null
5
+ pipeline_tag: automatic-speech-recognition
6
+ tags:
7
+ - CTC
8
+ - pytorch
9
+ - speechbrain
10
+ - Transformer
11
+ - hf-asr-leaderboard
12
+ license: afl-3.0
13
+ datasets:
14
+ - commonvoice
15
+ metrics:
16
+ - wer
17
+ - cer
18
+ model-index:
19
+ - name: asr-wav2vec2-commonvoice-es
20
+ results:
21
+ - task:
22
+ name: Automatic Speech Recognition
23
+ type: automatic-speech-recognition
24
+ dataset:
25
+ name: RTVE2022
26
+ type: RTVE2022
27
+ config: es
28
+ split: test
29
+ args:
30
+ language: es
31
+ metrics:
32
+ - name: Test WER
33
+ type: wer
34
+ value: '23.45'
35
+ ---
36
+
37
+
38
+
39
+ <iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
40
+ <br/><br/>
41
+
42
+ # wav2vec 2.0 with CTC trained on data aligned from RTVE databases (No LM)
43
+
44
+ This repository provides all the necessary tools to perform automatic speech
45
+ recognition from an end-to-end system pretrained on CommonVoice (Spanish Language) within
46
+ SpeechBrain. For a better experience, we encourage you to learn more about
47
+ [SpeechBrain](https://speechbrain.github.io).
48
+
49
+ The performance of the model is the following:
50
+
51
+ | Release || Test WER | GPUs |
52
+ |:-------------:|:--------------:| :--------:|
53
+ | 16-01-23 | 23.45 | 3xRTX2080Ti 12GB |
54
+
55
+ ## Pipeline description
56
+
57
+ This ASR system is composed of 2 different but linked blocks:
58
+ - Tokenizer (char) that transforms words into chars and trained with
59
+ the train transcriptions (train.tsv) of CommonVoice (ES).
60
+ - Acoustic model (wav2vec2.0 + CTC). A pretrained wav2vec 2.0 model ([wav2vec2-large-xlsr-53-spanish](https://huggingface.co/facebook/wav2vec2-large-xlsr-53-spanish)) is combined with two DNN layers and finetuned on CommonVoice ES.
61
+ The obtained final acoustic representation is given to the CTC decoder.
62
+
63
+ The system is trained with recordings sampled at 16kHz (single channel).
64
+ The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
65
+
66
+ ## Install SpeechBrain
67
+
68
+ First of all, please install tranformers and SpeechBrain with the following command:
69
+
70
+ ```
71
+ pip install speechbrain transformers
72
+ ```
73
+
74
+ Please notice that we encourage you to read tutorials and learn more about
75
+ [SpeechBrain](https://speechbrain.github.io).
76
+
77
+ ### Transcribing your own audio files (in Spanish)
78
+
79
+ ```python
80
+ from speechbrain.pretrained import EncoderASR
81
+ asr_model = EncoderASR.from_hparams(source="Voyager1/asr-wav2vec2-commonvoice-es", savedir="pretrained_models/asr-wav2vec2-commonvoice-es")
82
+ asr_model.transcribe_file("Voyager1/asr-wav2vec2-commonvoice-es/example-es.wav")
83
+ ```
84
+ ### Inference on GPU
85
+ To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
86
+
87
+
88
+ ### Limitations
89
+ We do not provide any warranty on the performance achieved by this model when used on other datasets.
90
+
91
+
92
+ # **Citations**
93
+
94
+ ```bibtex
95
+ @article{lopez2022tid,
96
+ title={TID Spanish ASR system for the Albayzin 2022 Speech-to-Text Transcription Challenge},
97
+ author={L{\'o}pez, Fernando and Luque, Jordi},
98
+ journal={Proc. IberSPEECH 2022},
99
+ pages={271--275},
100
+ year={2022}
101
+ }
102
+ @misc{https://doi.org/10.48550/arxiv.2210.15226,
103
+ doi = {10.48550/ARXIV.2210.15226},
104
+ url = {https://arxiv.org/abs/2210.15226},
105
+ author = {López, Fernando and Luque, Jordi},
106
+ title = {Iterative pseudo-forced alignment by acoustic CTC loss for self-supervised ASR domain adaptation},
107
+ publisher = {arXiv},
108
+ year = {2022},
109
+ copyright = {Creative Commons Attribution 4.0 International}
110
+ }
111
+ @misc{lleidartve,
112
+ title={Rtve 2018, 2020 and 2022 database description},
113
+ author={Lleida, E and Ortega, A and Miguel, A and Baz{\'a}n, V and P{\'e}rez, C and G{\'o}mez, M and de Prada, A}
114
+ }
115
+ @misc{speechbrain,
116
+ title={{SpeechBrain}: A General-Purpose Speech Toolkit},
117
+ author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
118
+ year={2021},
119
+ eprint={2106.04624},
120
+ archivePrefix={arXiv},
121
+ primaryClass={eess.AS},
122
+ note={arXiv:2106.04624}
123
+ }
124
+ ```
125
+